Sha256: 8e6b81040576f415fbd1541818cc7f01eaa191fed3ab92bd7116a3bba5ce3b3d

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

module ActiveScaffold::Actions
  module CommonSearch
    protected
    def store_search_params_into_session
      active_scaffold_session_storage[:search] = params.delete :search if params[:search]
    end
    
    def search_params
      active_scaffold_session_storage[:search]
    end

    # The default security delegates to ActiveRecordPermissions.
    # You may override the method to customize.
    def search_authorized?
      authorized_for?(:crud_type => :read)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 vendor/plugins/active_scaffold/lib/active_scaffold/actions/common_search.rb
brisk-bills-0.8.1 vendor/plugins/active_scaffold/lib/active_scaffold/actions/common_search.rb