Module: Adminterface::Extensions::Resource::ActionItem
- Defined in:
- lib/adminterface/extensions/resource/action_items.rb
Instance Method Summary collapse
Instance Method Details
#display_on?(action, render_context = self) ⇒ Boolean
81 82 83 84 85 |
# File 'lib/adminterface/extensions/resource/action_items.rb', line 81 def display_on?(action, render_context = self) @options[:only] = Array(return_or_proc_exec(@options[:only])) if @options[:only] @options[:except] = Array(return_or_proc_exec(@options[:except])) if @options[:except] super end |
#group ⇒ Object
87 88 89 |
# File 'lib/adminterface/extensions/resource/action_items.rb', line 87 def group @options[:group] || 99 end |
#priority ⇒ Object
91 92 93 |
# File 'lib/adminterface/extensions/resource/action_items.rb', line 91 def priority @options[:priority] || 99 end |