Sha256: 9800cfa8f2e537901e08e6e89b9c6c949dca0cd6025da0e508c122d78f263dba

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

module Snapuser
  class Engine < ::Rails::Engine
    require 'snaptable'

    initializer "Snapuser.append_migrations" do |app|
      config.paths["db/migrate"].expanded.each do |expanded_path|
        app.config.paths["db/migrate"] << expanded_path
      end
    end

    initializer 'Snapuser.action_controller' do |app|
      ActionController::Base.send :include, SessionsHelper
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
snapuser-0.2.2 lib/snapuser/engine.rb
snapuser-0.2.1 lib/snapuser/engine.rb