Sha256: 19cb3be39cb42832625b20d83da56e32035045e9e9f7469e1bf57d56936668ff

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

module VoluntaryBrainstorming
  class Engine < ::Rails::Engine
    config.autoload_paths << File.expand_path("../..", __FILE__)
    config.autoload_paths << File.expand_path("../../../app/models/concerns", __FILE__)
    config.autoload_paths << File.expand_path("../../../app/serializers", __FILE__)
    config.i18n.load_path += Dir[File.expand_path("../../../config/locales/**/*.{rb,yml}", __FILE__)]
     
    initializer 'configure ember-rails ranking', before: 'ember_rails.setup_vendor' do
      config.handlebars.templates_root << 'voluntary_brainstorming/templates'
    end
    
    config.to_prepare do
      User.send :include, VoluntaryBrainstorming::Concerns::Model::User::HasBrainstormings
      Argument.send :include, VoluntaryBrainstorming::Concerns::Model::Argument::PublishesChangesToBrainstorming
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_brainstorming-0.0.2 lib/voluntary_brainstorming/engine.rb