Sha256: 2f80d6c5824d814141917255424b9c49dd69a19a5b9e1a67a51ca02d543aecd2
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
class ActiveApplication::ResourceController < SimpleResource::BaseController defaults route_prefix: "" before_filter :authenticate_user! load_and_authorize_resource has_scope :page, default: 1 def render_not_found render "active_application/public/404", status: :not_found, layout: false end rescue_from CanCan::AccessDenied do |exception| return render_not_found end def create create! { collection_url } end def update update! { collection_url } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_application-0.0.1 | app/controllers/active_application/resource_controller.rb |