Last active
December 28, 2015 22:29
-
-
Save jjb/7571621 to your computer and use it in GitHub Desktop.
difference in MRI vs. JRuby behavior
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> RUBY_DESCRIPTION | |
=> "jruby 1.7.6 (2.0.0p195) 2013-10-22 6004147 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_65-b14-462-11M4609 [darwin-x86_64]" | |
> User.first.try :devise_mailer | |
NoMethodError: undefined method `devise_mailer' for #<User:0x12d4172e> | |
from org/jruby/RubyBasicObject.java:1497:in `method_missing' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> RUBY_DESCRIPTION | |
=> "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]" | |
> User.first.try :devise_mailer | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment