Module: Datagrid::ActiveModel::ClassMethods

Defined in:
lib/datagrid/active_model.rb

Instance Method Summary collapse

Instance Method Details

#param_nameString

Returns URL query parameter name of the grid class.

Returns:

  • (String)

    URL query parameter name of the grid class



15
16
17
# File 'lib/datagrid/active_model.rb', line 15

def param_name
  to_s.underscore.tr("/", "_")
end