Sha256: 1ec8bffcde9941144873f4403ef03087b245152ed350684db976dba79da585a7

Contents?: true

Size: 746 Bytes

Versions: 5

Compression:

Stored size: 746 Bytes

Contents

module Cally
  class Engine < ::Rails::Engine
    isolate_namespace Cally
    require 'bcrypt'#, '~>3.1.7'
    require 'omw_random_string'
    require 'omw_mailgun'
    require 'jquery-rails'
    require 'delorean'
    require 'bootstrap-sass'
    require 'sass-rails'
    require 'will_paginate'

    config.to_prepare do
      Dir.glob(Rails.root+ "app/decorators/**/*_decorator*.rb").each do |c|
        require_dependency(c)
      end
    end

    config.before_initialize do
      ActiveSupport.on_load :application_controller do
        helper Cally::Engine.helpers
      end
    end

    initializer "cally.load_helpers" do
      ActiveSupport.on_load(:application_controller) do
        include Cally::Methods
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cally-2.0.0 lib/cally/engine.rb
cally-1.0.3 lib/cally/engine.rb
cally-1.0.2 lib/cally/engine.rb
cally-1.0.1 lib/cally/engine.rb
cally-1.0.0 lib/cally/engine.rb