Felix Schäfer wrote:
> Am 13.09.2010 um 14:58 schrieb Awijeet Mr.:
> 
>> if  I write i.class it returns Post, so I thought module will be a
>> method in post_controller.rb. But it's not
> 
> If i is of the type Post, i.module will call the method module from the 
> Post object in app/models/post.rb, not from a PostsController object as 
> you seem to think it will.
> 
> Felix

I have checked the code in app/models/post.rb
there are no module method, but at lot of space self.module function has 
been called, and a defined method is def set_module
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to