lib/impartial-rails/railtie.rb in impartial-rails-0.0.2 vs lib/impartial-rails/railtie.rb in impartial-rails-0.0.4
- old
+ new
@@ -1,17 +1,18 @@
require 'rails/railtie'
require 'impartial/base'
+
module Impartial
module Rails
class Railtie < ::Rails::Railtie
initializer 'impartial.autoload', :before => :set_autoload_paths do |app|
app.config.autoload_paths << ::Rails.root.join('app', 'impartials')
- app.config.assets.paths << Rails.root.join('app', 'impartials')
end
initializer 'impartial.paths' do |app|
+ app.config.assets.paths << ::Rails.root.join('app', 'impartials')
Impartial.configure do |config|
config.paths = [::Rails.root.join('app', 'impartials')]
end
end