Module: RedmineExtensions::ApplicationControllerPatch::InstanceMethods
- Defined in:
- lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb
Instance Method Summary collapse
Instance Method Details
#easy_extensions? ⇒ Boolean
26 27 28 |
# File 'lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb', line 26 def easy_extensions? self.class.easy_extensions? end |
#index_for_easy_query(query_klass) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/redmine_extensions/redmine_patches/controllers/application_controller_patch.rb', line 15 def index_for_easy_query(query_klass, *) @query = query_klass.new(name: '_') @query.project = @project @query.build_from_params(params) sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria) sort_update(@query.sortable_columns) @entities = @query.entities end |