[Rails] Problem loading modules through ActiveSupport on_load

2012-01-23 Thread Syed Aslam
Working with modules to group certain methods. Currently I have this set up and it works: **# app/models/a.rb** class A has_history end **# lib/history.rb** module History module Model def self.included(base) base.send :extend, ClassMethods

[Rails] Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]

2010-07-01 Thread Syed Aslam
I had problem even though I had installed mongrel --pre. In Gemfile you need to specifically point mongrel to use 1.2.0.pre2 or else it will try to use the old version, even if you remove it from the cache. On Jun 20, 2:22 pm, Anthony Green li...@ruby-forum.com wrote: More digging and the

[Rails] Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]

2010-07-01 Thread Syed Aslam
I had problem even though I had installed mongrel --pre. In Gemfile you need to specifically point mongrel to use 1.2.0.pre2 or else it will try to use the old version, even if you remove it from the cache. On Jun 20, 2:22 pm, Anthony Green li...@ruby-forum.com wrote: More digging and the