Class: RichAssetInput

Inherits:
Formtastic::Inputs::StringInput
  • Object
show all
Defined in:
app/inputs/rich_asset_input.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject

todo: differentiate between rich_asset and rich_asset_url where the former links an object and the latter returns a url string ?



10
11
12
13
14
# File 'app/inputs/rich_asset_input.rb', line 10

def input_html_options
  options = super
  options[:class] = [options[:class], "rich_asset"].compact.join(' ')
  options
end