Comments (4)
Have you tried loading Facets before ActiveSupport? If you get Facets to load before ActiveSupport than ActiveSupport will have the last word in method definitions and everything should then work fine.
I took a look at ActiveSupport's implementation of #redefine_method and have updated Facets to be compatible, so this particular method shouldn't be a problem in the future.
from facets.
I still have this issue and I am using facets 2.9.2:
"/gems/activerecord-3.1.0/lib/active_record/base.rb:1082:in method_missing': private method
redefine_method' called for #Class:0x103e27ee0 (NoMethodError)"
Removing facets gets rid of the error. How do I load facets before activesupport?
from facets.
On Fri, Sep 30, 2011 at 3:17 PM, hisham
[email protected]
wrote:
I still have this issue and I am using facets 2.9.2:
"/gems/activerecord-3.1.0/lib/active_record/base.rb:1082:in
method_missing': private method
redefine_method' called for #Class:0x103e27ee0 (NoMethodError)"Removing facets gets rid of the error. How do I load facets before activesupport?
Read this page
https://github.com/rubyworks/facets/wiki/TIP%3A-Facets-on-Rails
Let me know how this works for you.
from facets.
Ok, yes, putting require 'facets' before require 'rails/all' in config/application.rb worked.
from facets.
Related Issues (20)
- is:issue is:open Hash symbolize_keys stringify_keys does not work on nested hashes HOT 3
- hashify.rb bug HOT 1
- Small typo in the main README HOT 3
- `mattr`/`cattr` (aka attribute accessors) to keep up with the times HOT 6
- MIT License HOT 4
- prefer require_relative HOT 3
- Functionality to remove for 4.0.0 HOT 1
- Deprecate Hash#fetch_nested
- Documentation not working HOT 8
- ergo's behavior on nil isn't like tap HOT 1
- mention `gem :facets, require: (value)` with an array in the README HOT 1
- Unexpected test-unit behavior with facets HOT 1
- Module#attr_setter does not support frozen-string-literal
- Question on some gems
- High percentile value raises error HOT 2
- Global definition of 'with' function in Kernel module breaks rspec functionality
- Rails console broken HOT 3
- Upgrading tzinfo to 1.2.7 causes: undefined method `untaint' for class `Enumerable::Recursor' HOT 2
- Answering about gem HOT 2
- Official Document Website is 404 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facets.