Displaying 1 result from an estimated 1 matches for "mapun".
Did you mean:
mamun
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
...Model is loaded and throws up
errors when I do this in a model which is supposed to include this
module:
**# app/models/b.rb**
class B
has_fleet
end
I am unable to get around this and not sure what is going wrong here.
Throws up the following errors:
syed@rails:~/work/projects/mapunity/pinpoint$ rails c
/home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.7/lib/
active_record/base.rb:1009:in `method_missing'': undefined local
variable or method `has_fleet'' for #<Class:0x9c2f200> (NameError)
from /home/syed/work/projects/mapunity/pinpoint/app...