Giter VIP home page Giter VIP logo

Comments (11)

ctran avatar ctran commented on May 28, 2024

Can you provide a sample model?

from annotate_models.

leonid-shevtsov avatar leonid-shevtsov commented on May 28, 2024
class Whatever < ActiveRecord::Base
  # attributes don't matter

  # look up rdocs on this
  extend ActiveSupport::Memoizable

  def some_heavy_method
    return 'whatever'
  end
  memoize :some_heavy_method

end

Looks like you're loading the class twice.

from annotate_models.

thibaudgg avatar thibaudgg commented on May 28, 2024

I have the same problem with Rails 3.0.5 & Ruby 1.9.2.
Is this gem still maintained? I hope so, because I love it :)

from annotate_models.

ctran avatar ctran commented on May 28, 2024

I'll see what I can do.

from annotate_models.

thibaudgg avatar thibaudgg commented on May 28, 2024

Great, thanks!

from annotate_models.

glennr avatar glennr commented on May 28, 2024

+1 for this

from annotate_models.

agibralter avatar agibralter commented on May 28, 2024

+1

from annotate_models.

todd-a-jacobs avatar todd-a-jacobs commented on May 28, 2024

+1. Still having issues with Rails 3.0.10, Ruby 1.8.7-p302, and annotate 2.4.0.

from annotate_models.

eagleas avatar eagleas commented on May 28, 2024

+1. Same problem.

from annotate_models.

turadg avatar turadg commented on May 28, 2024

Thanks @eagleas. I've merged your fix.

If the problem persists for anyone, please reopen this ticket.

from annotate_models.

adie avatar adie commented on May 28, 2024

I still have this problem, installed gem with
gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
I've checked that I use the last commit, a43c08f
Rails 3.0.10, ree-1.8.7-2011.12

from annotate_models.

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.