Module: NameableRecord::ActiveRecordExtensions::ActsMethods
- Defined in:
- lib/nameable_record/active_record_extensions.rb
Instance Method Summary collapse
- #has_name(*args) ⇒ Object (also: #has_names)
Instance Method Details
#has_name(*args) ⇒ Object Also known as: has_names
8 9 10 11 12 13 14 |
# File 'lib/nameable_record/active_record_extensions.rb', line 8 def has_name( *args ) unless included_modules.include? InstanceMethods self.class_eval { extend ClassMethods } include InstanceMethods end initialize_compositions( args ) end |