Module: MetaController::Adaptors::EditAction
- Defined in:
- lib/meta_controller/adaptors/edit_action.rb
Instance Method Summary collapse
Instance Method Details
#edit_action ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/meta_controller/adaptors/edit_action.rb', line 6 def edit_action controller_eval do define_callbacks :before_edit_find define_callbacks :after_edit_find end define_controller_method(:edit, %{ run_callbacks(:before_edit_find) #{short_model_name} run_callbacks(:after_edit_find) render_any #{short_model_name}, :action => 'form' }) end |