Sha256: 29037a183b22990a6d923c4c58906855dd7f011ea0d1d4107e2f417b5b2380bd

Contents?: true

Size: 796 Bytes

Versions: 17

Compression:

Stored size: 796 Bytes

Contents

require "adeia/controller_methods"
require "adeia/helpers/sessions_helper"
require "adeia/helpers/user_helper"
require "adeia/exceptions"

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

    isolate_namespace Adeia

    config.generators do |g|
      g.test_framework :rspec
      g.assets false
      g.helper false
      g.factory_girl false
    end

    initializer 'Adeia.requirements' do |app|
      begin
        User
        require 'adeia/guest_user'
      rescue NameError
        raise MissingUserModel
      end
    end

    config.to_prepare do
      ActionController::Base.send :include, Adeia::Helpers::SessionsHelper
      ActionController::Base.send :include, Adeia::ControllerMethods
      User.send :include, Adeia::Helpers::UserHelper
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adeia-0.15.4 lib/adeia/engine.rb
adeia-0.15.3 lib/adeia/engine.rb
adeia-0.15.2 lib/adeia/engine.rb
adeia-0.15.1 lib/adeia/engine.rb
adeia-0.15.0 lib/adeia/engine.rb
adeia-0.14.0 lib/adeia/engine.rb
adeia-0.13.1 lib/adeia/engine.rb
adeia-0.13.0 lib/adeia/engine.rb
adeia-0.12.0 lib/adeia/engine.rb
adeia-0.11.11 lib/adeia/engine.rb
adeia-0.11.10 lib/adeia/engine.rb
adeia-0.11.9 lib/adeia/engine.rb
adeia-0.11.8 lib/adeia/engine.rb
adeia-0.11.7 lib/adeia/engine.rb
adeia-0.11.6 lib/adeia/engine.rb
adeia-0.11.5 lib/adeia/engine.rb
adeia-0.11.4 lib/adeia/engine.rb