Skip to content

Commit

Permalink
Add .to_s to Rails.version for Rails 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
smidwap committed Apr 8, 2013
1 parent 6008300 commit f23e959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws/ses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
require 'ses/addresses'

if defined?(Rails)
major, minor = Rails.version.split('.')
major, minor = Rails.version.to_s.split('.')
require 'actionmailer/ses_extension' if major == '2' && minor == '3'
end
end

0 comments on commit f23e959

Please sign in to comment.