Method: Administrate::BaseDashboard#form_attributes
- Defined in:
- lib/administrate/base_dashboard.rb
#form_attributes(action = nil) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/administrate/base_dashboard.rb', line 54 def form_attributes(action = nil) action = case action when "update" then "edit" when "create" then "new" else action end specific_form_attributes_for(action) || self.class::FORM_ATTRIBUTES end |