Sha256: 6207f7f809372107c1fa660a20a5553c37ad5ec4be11df5f3478968787ce2da9

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

require 'rails'
require 'authoreyes/version'
require 'authoreyes/parser'
require 'authoreyes/authorization'
require 'authoreyes/railtie'

module Authoreyes
  class Railtie
    # Require helpers after Rails initialization
    config.after_initialize do
      require 'authoreyes/helpers/in_controller'

      # Include Controller helpers not already sent to specific parts
      # of ActionController (e.g., permitted_to?, etc.)
      ActionController::Metal.include Authoreyes::Helpers::InController
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authoreyes-0.2.4 lib/authoreyes.rb
authoreyes-0.2.3 lib/authoreyes.rb