aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/record_identifier.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-08-25 13:34:52 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-08-28 11:19:37 +0200
commitf4d493ed7c451f3df7602c5164a1954caa40284e (patch)
tree5d272ddd5c54ae164620bf104895943f38dc087b /actionpack/lib/action_view/record_identifier.rb
parent8eb4600c881f55370663f3a6225271d9cdc7bdbd (diff)
downloadrails-f4d493ed7c451f3df7602c5164a1954caa40284e.tar.gz
rails-f4d493ed7c451f3df7602c5164a1954caa40284e.tar.bz2
rails-f4d493ed7c451f3df7602c5164a1954caa40284e.zip
Fix ActionView::RecordIdentifier to work as a singleton
We extend it with self, but the methods were not working properly were used directly on module.
Diffstat (limited to 'actionpack/lib/action_view/record_identifier.rb')
-rw-r--r--actionpack/lib/action_view/record_identifier.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/record_identifier.rb b/actionpack/lib/action_view/record_identifier.rb
index 0d44145231..2953654972 100644
--- a/actionpack/lib/action_view/record_identifier.rb
+++ b/actionpack/lib/action_view/record_identifier.rb
@@ -27,6 +27,7 @@ module ActionView
# same naming convention and allows you to write less code if you follow it.
module RecordIdentifier
extend self
+ extend ModelNaming
include ModelNaming