Sha256: fd652a64061b3609dcde8dd7db10691caef16f1a79462871966b8209ba8ac2bf

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

class Passwd
  class Railtie < ::Rails::Railtie
    config.passwd = ActiveSupport::OrderedOptions.new

    initializer "passwd" do
      require "passwd/rails/action_controller_ext"
      require "passwd/rails/active_record_ext"

      ActiveSupport.on_load(:action_controller) do
        ::ActionController::Base.include ::Passwd::Rails::ActionControllerExt
      end

      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Base.extend Passwd::Rails::ActiveRecordExt
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passwd-0.4.0 lib/passwd/railtie.rb