Sha256: e7c6e59871cd3e61c66a975ac6a4f3c9f7398431eca038e84e4b1a503e32a9b8

Contents?: true

Size: 375 Bytes

Versions: 17

Compression:

Stored size: 375 Bytes

Contents

module Annex

  class ApplicationController < ::ApplicationController
    protect_from_forgery with: :null_session

    before_filter :annex_authenticate!
    before_filter :annex_authorize!

    def annex_authenticate!
      instance_eval &Annex::Config.authenticate_with
    end

    def annex_authorize!
      instance_eval &Annex::Config.authorize_with
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
annex-cms-0.5.0 app/controllers/annex/application_controller.rb
annex-cms-0.4.0 app/controllers/annex/application_controller.rb
annex-cms-0.3.8 app/controllers/annex/application_controller.rb
annex-cms-0.3.7 app/controllers/annex/application_controller.rb
annex-cms-0.3.6 app/controllers/annex/application_controller.rb
annex-cms-0.3.5 app/controllers/annex/application_controller.rb
annex-cms-0.3.4 app/controllers/annex/application_controller.rb
annex-cms-0.3.2 app/controllers/annex/application_controller.rb
annex-cms-0.3.1 app/controllers/annex/application_controller.rb
annex-cms-0.3.0 app/controllers/annex/application_controller.rb
annex-cms-0.2.1 app/controllers/annex/application_controller.rb
annex-cms-0.2.0 app/controllers/annex/application_controller.rb
annex-cms-0.1.8 app/controllers/annex/application_controller.rb
annex-cms-0.1.7 app/controllers/annex/application_controller.rb
annex-cms-0.1.5 app/controllers/annex/application_controller.rb
annex-cms-0.1.2 app/controllers/annex/application_controller.rb
annex-cms-0.1.0 app/controllers/annex/application_controller.rb