Sha256: 17e4a19a2a8d74be74d74f68c6843553323163d76ff947c2b945863b69ca90f6
Contents?: true
Size: 684 Bytes
Versions: 19
Compression:
Stored size: 684 Bytes
Contents
class Admin::BrowsersController < AdminController include LockableEntity include ToggleableEntity before_action :set_entity, except: [:index] before_action :check_entity_lock, only: [:toggle] # get /admin/browsers def index @collection = Browser.page_for_administration(current_page) end # get /admin/browsers/:id def show @collection = @entity.agents.page_for_administration(current_page) end protected def restrict_access require_privilege :administrator end def set_entity @entity = Browser.find_by(id: params[:id], deleted: false) if @entity.nil? handle_http_404('Browser is not found or was deleted') end end end
Version data entries
19 entries across 19 versions & 1 rubygems