Code Monkey home page Code Monkey logo

Comments (4)

trans avatar trans commented on June 14, 2024

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.

hisham avatar hisham commented on June 14, 2024

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 methodredefine_method' called for #Class:0x103e27ee0 (NoMethodError)"

Removing facets gets rid of the error. How do I load facets before activesupport?

from facets.

trans avatar trans commented on June 14, 2024

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 methodredefine_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.

hisham avatar hisham commented on June 14, 2024

Ok, yes, putting require 'facets' before require 'rails/all' in config/application.rb worked.

from facets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.