Repository navigation
TIP: Facets on Rails
trans edited this page Aug 23, 2011
·
5 revisions
In "config/preinitializer.rb" add
require 'facets'
or
require 'facets/xxx'
require 'facets/yyy'
...
This will ensure that Facets is loaded before ActiveSupport, giving ActiveSupport the last word in method definitions.
I recently was told that the preinitializer.rb approach no longer works and that the solution is in "config/application.rb" just before
require 'rails/all'
add
require 'facets'
or
require 'facets/xxx'
require 'facets/yyy'
...
Please help keep this information updated.