lib/the_comments.rb in the_comments-2.1.0 vs lib/the_comments.rb in the_comments-2.2.0

- old
+ new

@@ -2,18 +2,18 @@ require 'the_sortable_tree' require 'the_comments/config' require 'the_comments/version' +_root_ = File.expand_path('../../', __FILE__) + module TheComments class Engine < Rails::Engine; end end # Loading of concerns +require "#{_root_}/config/routes.rb" +require "#{_root_}/app/controllers/concerns/controller.rb" -# controllers -require File.expand_path('../../app/controllers/concerns/controller.rb', __FILE__) - -# models %w[ comment_states comment user commentable ].each do |concern| - require File.expand_path("../../app/models/concerns/#{concern}.rb", __FILE__) + require "#{_root_}/app/models/concerns/#{concern}.rb" end \ No newline at end of file