aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorGosha Arinich <me@goshakkk.name>2013-01-06 12:43:30 +0300
committerGosha Arinich <me@goshakkk.name>2013-01-06 12:43:30 +0300
commit7a439d23de4c7c187b0deda8e02138b3dccf0181 (patch)
tree267bcf762c5b03ba6d0a4211d4955a0028d8285c /guides/source/active_support_core_extensions.md
parentbdffd1e884593adc40fb30bd7c05661a668fc897 (diff)
downloadrails-7a439d23de4c7c187b0deda8e02138b3dccf0181.tar.gz
rails-7a439d23de4c7c187b0deda8e02138b3dccf0181.tar.bz2
rails-7a439d23de4c7c187b0deda8e02138b3dccf0181.zip
delegate to :class rather than 'self.class'
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index dd589ff8e3..7f03363b23 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -920,7 +920,7 @@ When interpolated into a string, the `:to` option should become an expression th
delegate :logger, to: :Rails
# delegates to the receiver's class
-delegate :table_name, to: 'self.class'
+delegate :table_name, to: :class
```
WARNING: If the `:prefix` option is `true` this is less generic, see below.