Sha256: 1addbc2c21c6af35b6996f36651b3748096db64ed09354d3f759b79f0236ed13

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Releaf
  class BaseApplicationController < ActionController::Base

    before_filter "authenticate_#{ReleafDeviseHelper.devise_admin_model_name}!"
    # check_authorization :unless => :devise_controller?
    layout Releaf.layout
    protect_from_forgery

    def current_ability
      @current_ability ||= AdminAbility.new(self.send("current_#{ReleafDeviseHelper.devise_admin_model_name}"))
    end

    def full_controller_name
      self.class.name.sub(/Controller$/, '').underscore
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
releaf-0.1.2 app/controllers/releaf/base_application_controller.rb