Sha256: d53bc186a658bf814936d43ad91edcd81d684aad11ce84628d2cb0300173d819

Contents?: true

Size: 611 Bytes

Versions: 7

Compression:

Stored size: 611 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
module FatFreeCRM
  class Engine < ::Rails::Engine
    config.autoload_paths += Dir[root.join("app/models/**")] +
                             Dir[root.join("app/controllers/entities")]

    config.to_prepare do
      ActiveRecord::Base.observers = :lead_observer, :opportunity_observer, :task_observer
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fat_free_crm-0.13.2 lib/fat_free_crm/engine.rb
fat_free_crm-0.12.3 lib/fat_free_crm/engine.rb
fat_free_crm-0.12.2 lib/fat_free_crm/engine.rb
fat_free_crm-0.13.1 lib/fat_free_crm/engine.rb
fat_free_crm-0.12.1 lib/fat_free_crm/engine.rb
fat_free_crm-0.13.0 lib/fat_free_crm/engine.rb
fat_free_crm-0.12.0 lib/fat_free_crm/engine.rb