joshfrench / rakismet

Easy Akismet and TypePad AntiSpam integration for Rails
MIT License
355 stars 46 forks source link

Fixing a bug where Rails.version is potentially undefined. #42

Closed brett-bender closed 8 years ago

brett-bender commented 8 years ago

Fixes #41 If a user is using certain gems (ActiveRecord, ActionMailer, etc) without the rails gem, in a standalone application, they encounter a situation where the Rails module is defined but doesn't have a version method, so improve the check before adding Rails.version to the headers.

joshfrench commented 8 years ago

I just gave you commit access, if you merge & cut a new bugfix release I'll push to Rubygems. Thanks for the patch!

brett-bender commented 8 years ago

Done, thanks!

joshfrench commented 8 years ago

Thanks Brett! 1.5.2 is up on Rubygems now.