require 'paperclip' require 'devise' require 'redcarpet' require 'bootstrap-sass' require 'bootstrap-sass-extras' require 'jquery-rails' require 'factory_girl_rails' require 'faker' module Portfolio class Engine < ::Rails::Engine isolate_namespace Portfolio config.to_prepare do require_relative './custom_failure' end config.generators do |g| g.test_framework :rspec, fixture: false g.fixture_replacement :factory_girl, :dir => 'spec/factories' end end class << self mattr_accessor :auth_method, :auth_action, :company_name self.auth_method = :portfolio_admin_user self.auth_action = :authenticate_admin_user! self.company_name = 'Rails Portfolio' end def self.setup(&block) yield self end end