Skip to content

Commit

Permalink
Fixed deprecation warning for accessing Rails paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 8, 2011
1 parent 757e180 commit a7a0ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Override engine views so that plugin views have higher priority.
Rails::Engine.initializers.detect{|i| i.name == :add_view_paths }.
instance_variable_set("@block", Proc.new {
views = paths.app.views.to_a
views = paths["app/views"].to_a
unless views.empty?
ActiveSupport.on_load(:action_controller){ append_view_path(views) }
ActiveSupport.on_load(:action_mailer){ append_view_path(views) }
Expand Down

0 comments on commit a7a0ee0

Please sign in to comment.