Module: MoxieForum::ActsAsMoxieUser::Base::Config
- Defined in:
- lib/moxie_forum/acts_as_moxie_user/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.i_am_moxie_user ⇒ Object
22 23 24 |
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 22 def self.i_am_moxie_user true end |
Instance Method Details
#acts_as_moxie_user ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/moxie_forum/acts_as_moxie_user/base.rb', line 12 def acts_as_moxie_user has_many :posts, :foreign_key => 'author_id', :order => "created_at", :class_name => 'Moxie::Post' has_many :topics, :foreign_key => 'author_id', :order => "created_at", :class_name => 'Moxie::Topic' def self.i_am_moxie_user true end include MoxieForum::ActsAsMoxieUser::Base::InstanceMethods end |