Class: HasCustomFields::Base

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/has_custom_fields/base.rb

Instance Method Summary collapse

Instance Method Details

#select_options_dataObject



10
11
12
# File 'lib/has_custom_fields/base.rb', line 10

def select_options_data
  (self.related_select_options.collect{|o| o.option } || [])
end

#select_options_data=(data) ⇒ Object



14
15
16
# File 'lib/has_custom_fields/base.rb', line 14

def select_options_data=(data)
  self.select_options = data.split(",").collect{|f| f.strip}
end