Module: KomachiConcernedWith::ActiveRecord::ClassMethods
- Defined in:
- lib/komachi_concerned_with/active_record.rb
Instance Method Summary collapse
Instance Method Details
#concerned_with(*concerns) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/komachi_concerned_with/active_record.rb', line 9 def concerned_with(*concerns) concerns.map(&:to_s).each do |concern| require_dependency "#{name.underscore}/#{concern}" include concern.camelize.constantize end end |