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