Sha256: 5f40fee77e7ca2eb59d5f7c6fd004d932932a1c03d0016091b26cc7dcf27f415
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
class ContentController < ApplicationController skip_before_action :verify_authenticity_token before_action :load_section before_action :load_database_list, only: [:index, :search] before_action :load_current_database, only: [:index, :search] def index end def search results = SearchKey.new(backend, params[:key]).result @results = results.paginate(:page => params[:page], :per_page => 20) end def delete RemoveKey.new(backend, params[:key]).execute redirect_to :back end def change_database ChangeDatabase.new(backend, session, params[:database]).execute redirect_to :back end private def load_section @section = 'content' end def load_database_list @databases = DatabaseList.new(backend).result end def load_current_database @current_database = backend.current_database end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.2.1 | lib/engine/app/controllers/content_controller.rb |