Module: DatatableState::ApplicationHelper
- Defined in:
- app/helpers/datatable_state/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#saved_display_length ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/datatable_state/application_helper.rb', line 3 def saved_display_length saved_state = Store.find_by_user_id_and_path(current_user.id, request.path.split('/').last) "data-display-length=#{JSON.parse(saved_state.state)['length']}" if saved_state end |