Sha256: 40627c1a6b3dec7367819329ecab4de284e96cdf32ac6c8f2bbbfae272584ba0

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

module VoluntaryFeedback
  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 feedback', before: 'ember_rails.setup_vendor' do
      config.handlebars.templates_root << 'voluntary_feedback/templates'
    end
    
    config.to_prepare do
      User.send :include, VoluntaryFeedback::Concerns::Model::User::HasCommunities
      Organization.send :include, VoluntaryFeedback::Concerns::Model::Organization::HasCommunities
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 lib/voluntary_feedback/engine.rb