Sha256: 6637850560108ad6103df796df944357083779c4633c0c152ec0d35c2bec3f8a

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

module Catarse
  module Core
    class Engine < ::Rails::Engine
      isolate_namespace Catarse

      YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)

      config.autoload_paths += %W(#{config.root}/lib #{config.root}/lib/** #{config.root}/app/presenters #{config.root}/app/presenters/** #{config.root}/app/business/ #{config.root}/app/business/**)

      config.after_initialize do
        Rails.application.routes_reloader.reload!
      end

      config.active_record.observers = ['catarse/backer_observer',
                                        'catarse/user_observer',
                                        'catarse/notification_observer',
                                        'catarse/update_observer',
                                        'catarse/project_observer',
                                        'catarse/payment_notification_observer']

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta lib/catarse/core/engine.rb