Method: Transit::Admin::DSL#fields

Defined in:
lib/transit/admin.rb,
lib/transit/admin.rb

#fields(field_hash = {}) ⇒ Object

Specify the form fields used for each attribute. When inheriting posts or pages defaults are already pre-defined and normally only need to be overridden.

Examples:

Specify a text_area for the title and teaser of a post

config.fields title: :text_area, teaser: :text_area


67
68
69
# File 'lib/transit/admin.rb', line 67

def fields
  @fields
end