Module: Bean::User
- Defined in:
- lib/bean/user.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bean/user.rb', line 3 def self.included(base) base.class_eval do include InstanceMethods has_many :transfers, :class_name => 'Bean::Transfer' end Bean::Transfer.class_eval do belongs_to :user, :class_name => base.name end end |