Module: InlineForms::Tabs::Controller::ClassMethods
- Defined in:
- lib/inline_forms/tabs.rb
Instance Method Summary collapse
-
#set_tab(*args) ⇒ Object
set_tab :foo set_tab :foo, only: [:index, :show] set_tab :foo, :namespace, except: :new.
Instance Method Details
#set_tab(*args) ⇒ Object
set_tab :foo set_tab :foo, only: [:index, :show] set_tab :foo, :namespace, except: :new
64 65 66 67 68 69 70 71 |
# File 'lib/inline_forms/tabs.rb', line 64 def set_tab(*args) = args. name, namespace = args before_action() do |controller| controller.send(:set_tab, name, namespace) end end |