Closed olivierlacan closed 8 years ago
Odd... usually using @
inside a class method will be local to the current top level class, while using @@
would pollute the entire inheritance chain. I wonder if its a newer version of ruby that changes this behavior?
That would probably show up in the Travis build Matrix if it were recent Ruby related. No?
Dumb little example:
class One
def self.set_one
@test = "this is one"
end
def self.one
@test
end
end
class Two < One
def self.set_two
@test = "this is two"
end
end
One.one
> nil
One.set_one
One.one
> "this is one"
Two.one
> nil
Two.set_two
Two.one
> "this is two"
One.one
> "this is one"
works for me in 2.0.0-p353
Going to close this, feel free to reopen if it pops back up.
Example:
The
FunMailer
will now havefrom_name
andfrom
reset to the mandrill_mailer defaults, not the MailerBase. So basically we need to fix this: https://github.com/renz45/mandrill_mailer/blob/5cae59e0f91cf3aedba85c37afde310be09af1a8/lib/mandrill_mailer/core_mailer.rb#L154-L159From this:
To this:
Makes sense? @renz45 @katiedelfin