diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-22 09:39:33 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-22 09:39:33 +0000 |
commit | 8b1b72bb0d3f70b2a840ce6863775ef91f63ae14 (patch) | |
tree | 71214ef2a4c55dac149d1eadd3be531493cd8679 /actionmailer/lib/action_mailer/adv_attr_accessor.rb | |
parent | 95cd46c5ec496a02013d3918673cfae2d1922ac8 (diff) | |
download | rails-8b1b72bb0d3f70b2a840ce6863775ef91f63ae14.tar.gz rails-8b1b72bb0d3f70b2a840ce6863775ef91f63ae14.tar.bz2 rails-8b1b72bb0d3f70b2a840ce6863775ef91f63ae14.zip |
Remove duplicated file contents
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/adv_attr_accessor.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/adv_attr_accessor.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/actionmailer/lib/action_mailer/adv_attr_accessor.rb b/actionmailer/lib/action_mailer/adv_attr_accessor.rb index b1f5d4540b..a8b83c5e64 100644 --- a/actionmailer/lib/action_mailer/adv_attr_accessor.rb +++ b/actionmailer/lib/action_mailer/adv_attr_accessor.rb @@ -25,32 +25,3 @@ module ActionMailer end end end - -module ActionMailer - module AdvAttrAccessor #:nodoc: - def self.append_features(base) - super - base.extend(ClassMethods) - end - - module ClassMethods #:nodoc: - def adv_attr_accessor(*names) - names.each do |name| - define_method("#{name}=") do |value| - instance_variable_set("@#{name}", value) - end - - define_method(name) do |*parameters| - raise ArgumentError, "expected 0 or 1 parameters" unless parameters.length <= 1 - if parameters.empty? - instance_variable_get("@#{name}") - else - instance_variable_set("@#{name}", parameters.first) - end - end - end - end - - end - end -end |