Permalink
Browse files

remove unnecessary actionview extension

  • Loading branch information...
1 parent 8128c46 commit c598a5f1f810a9f7d12e2e33a924d0aa505986ec @khustochka committed Jan 15, 2010
View
2 app/controllers/taxonomy/taxa_controller.rb
@@ -14,7 +14,7 @@ def cleanup(proceed_methods)
end
-# helper_method :url_for # this is to use controller methods as helpers in views
+ helper_method :model_name
before_filter :require_admin
View
2 config/initializers/class_extensions.rb
@@ -7,7 +7,7 @@
require File.join(Rails.root, "lib/rails_ext/action_controller/#{inc_ext}")
end
-%w(base helpers).each do |inc_ext|
+%w(helpers).each do |inc_ext|
require File.join(Rails.root, "lib/rails_ext/action_view/#{inc_ext}")
end
View
5 lib/rails_ext/action_view/base.rb
@@ -1,5 +0,0 @@
-class ActionView::Base
- def model_name
- controller_name.singularize
- end
-end

0 comments on commit c598a5f

Please sign in to comment.