Class: Formtastic::Inputs::CategoryInput

Inherits:
SelectInput
  • Object
show all
Defined in:
lib/engine-rea-admin/inputs.rb

Instance Method Summary collapse

Instance Method Details

#collection_from_categoryObject



7
8
9
# File 'lib/engine-rea-admin/inputs.rb', line 7

def collection_from_category
  @object.class.categories_for(@method)
end

#raw_collectionObject



11
12
13
# File 'lib/engine-rea-admin/inputs.rb', line 11

def raw_collection
  @raw_collection ||= ( collection_from_category || super )
end