Sha256: 63286d9cdb2eedab9eb782342ec4bde73af3aa5b1560646fb6d4723c26fdaa15

Contents?: true

Size: 771 Bytes

Versions: 6

Compression:

Stored size: 771 Bytes

Contents

require "tkh_authentication/version"
# require 'bcrypt-ruby'
require 'simple_form'
require 'stringex'
require 'tkh_authentication/tkh_authentication_action_controller_extension'
require 'tkh_authentication/tkh_authentication_helper'
# require 'tkh_mailing_list' # debugging this

module TkhAuthentication
  class Engine < ::Rails::Engine
    # to extend the application helper in the host app
    initializer 'tkh_authentication.helper' do |app|
      ActionView::Base.send :include, TkhAuthenticationHelper
    end
    # to extend the application_controller in the host app
    initializer 'tkh_authentication.controller' do |app|
      ActiveSupport.on_load(:action_controller) do
         include TkhAuthenticationActionControllerExtension
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tkh_authentication-0.9.17.2 lib/tkh_authentication.rb
tkh_authentication-0.9.17.1 lib/tkh_authentication.rb
tkh_authentication-0.9.17 lib/tkh_authentication.rb
tkh_authentication-0.9.16 lib/tkh_authentication.rb
tkh_authentication-0.9.15 lib/tkh_authentication.rb
tkh_authentication-0.9.14 lib/tkh_authentication.rb