Module: ActiveCollection::MemberClass
- Defined in:
- lib/active_collection/member_class.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#human_name(*args) ⇒ Object
Plural human name of the member class.
-
#model_class ⇒ Object
The actual member class.
-
#table_name ⇒ Object
Table name of the member class.
Class Method Details
.included(mod) ⇒ Object
3 4 5 |
# File 'lib/active_collection/member_class.rb', line 3 def self.included(mod) mod.extend(ClassMethods) end |
Instance Method Details
#human_name(*args) ⇒ Object
Plural human name of the member class.
63 64 65 |
# File 'lib/active_collection/member_class.rb', line 63 def human_name(*args) self.class.human_name(*args) end |
#model_class ⇒ Object
The actual member class.
53 54 55 |
# File 'lib/active_collection/member_class.rb', line 53 def model_class self.class.model_class end |
#table_name ⇒ Object
Table name of the member class.
58 59 60 |
# File 'lib/active_collection/member_class.rb', line 58 def table_name self.class.table_name end |