diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-28 05:42:12 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-28 05:42:12 +0000 |
commit | 7555073803ffb455715b74664a0cfb48c271fe89 (patch) | |
tree | c3729911796be98a9ad48c5bee6da6402f050ffb /actionmailer/lib/action_mailer | |
parent | 16558f6dd83d514f783ed13e9bc24d6b66e5aefd (diff) | |
download | rails-7555073803ffb455715b74664a0cfb48c271fe89.tar.gz rails-7555073803ffb455715b74664a0cfb48c271fe89.tar.bz2 rails-7555073803ffb455715b74664a0cfb48c271fe89.zip |
Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick Cheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/adv_attr_accessor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/adv_attr_accessor.rb b/actionmailer/lib/action_mailer/adv_attr_accessor.rb index cfd723011a..e77029afdd 100644 --- a/actionmailer/lib/action_mailer/adv_attr_accessor.rb +++ b/actionmailer/lib/action_mailer/adv_attr_accessor.rb @@ -16,7 +16,7 @@ module ActionMailer define_method(name) do |*parameters| raise ArgumentError, "expected 0 or 1 parameters" unless parameters.length <= 1 if parameters.empty? - if instance_variables.include?(ivar) + if instance_variable_names.include?(ivar) instance_variable_get(ivar) end else |