Class: HasCustomFields::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HasCustomFields::Base
- Defined in:
- lib/has_custom_fields/base.rb
Instance Method Summary collapse
Instance Method Details
#select_options_data ⇒ Object
10 11 12 |
# File 'lib/has_custom_fields/base.rb', line 10 def (self..collect{|o| o.option } || []) end |
#select_options_data=(data) ⇒ Object
14 15 16 |
# File 'lib/has_custom_fields/base.rb', line 14 def (data) self. = data.split(",").collect{|f| f.strip} end |