lib/mountain_view/engine.rb in mountain_view-0.13.0 vs lib/mountain_view/engine.rb in mountain_view-0.14.0

- old
+ new

@@ -1,8 +1,9 @@ require "rails" module MountainView + # :nodoc: class Engine < ::Rails::Engine isolate_namespace MountainView initializer "mountain_view.components_path" do |app| MountainView.configure do |c| @@ -14,17 +15,17 @@ before: :set_autoload_paths do |app| component_paths = "#{MountainView.configuration.components_path}/{*}" app.config.autoload_paths += Dir[component_paths] end - initializer "mountain_view.assets" do |app| + initializer "mountain_view.assets" do |_app| Rails.application.config.assets.paths << MountainView.configuration.components_path - Rails.application.config.assets.precompile += %w( mountain_view/styleguide.css - mountain_view/styleguide.js ) + Rails.application.config.assets.precompile += + %w[mountain_view/styleguide.css mountain_view/styleguide.js] end - initializer "mountain_view.append_view_paths" do |app| + initializer "mountain_view.append_view_paths" do |_app| ActiveSupport.on_load :action_controller do append_view_path MountainView.configuration.components_path end end