module DataDisplay::Helpers
Constants
- ACTIONS
- LARGE_ACTIONS
- SHORT_ACTIONS
Public Instance Methods
current_action()
click to toggle source
# File lib/data_display/helpers.rb, line 21 def current_action params[:action] end
display_short?()
click to toggle source
# File lib/data_display/helpers.rb, line 13 def display_short? ACTIONS.include?(current_action) and SHORT_ACTIONS.include?(current_action) or params_id? end
params_id?()
click to toggle source
# File lib/data_display/helpers.rb, line 17 def params_id? params[:id].present? end