Method: InlineForms::InlineFormsGenerator#add_tab
- Defined in:
- lib/generators/inline_forms_generator.rb
#add_tab ⇒ Object
211 212 213 214 215 216 217 |
# File 'lib/generators/inline_forms_generator.rb', line 211 def add_tab unless @flag_not_accessible_through_html inject_into_file "app/controllers/application_controller.rb", "#{name.pluralize.underscore} ", :after => "ActionView::CompiledTemplates::MODEL_TABS = %w(" end end |