Sha256: dc8fa05ed782969881bb8c48df0b1febe350995c638d0a56e025a78d9b592d24

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

class ActiveApplication::ResourceController < SimpleResource::BaseController
  defaults route_prefix: ""
  before_filter :authenticate_user!

  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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_application-0.2.0 app/controllers/active_application/resource_controller.rb
active_application-0.1.0 app/controllers/active_application/resource_controller.rb