Class: MagicFieldRelationship
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MagicFieldRelationship
- Defined in:
- lib/app/models/magic_field_relationship.rb
Instance Method Summary collapse
Instance Method Details
#sync_name ⇒ Object
10 11 12 13 |
# File 'lib/app/models/magic_field_relationship.rb', line 10 def sync_name self.name = magic_field.name self.type_scoped = magic_field.type_scoped.blank? ? self.owner_type : magic_field.type_scoped end |