lib/voluntary_feedback/engine.rb in voluntary_feedback-0.0.1 vs lib/voluntary_feedback/engine.rb in voluntary_feedback-0.1.0

- old
+ new

@@ -1,4 +1,17 @@ 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