Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix class_name deprecation message. #58

Open
wants to merge 1 commit into from

1 participant

@jerico-dev

Fix ActiveRecord#class_name deprecation message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 8, 2013
  1. @jerico-dev
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/globalize/active_record.rb
View
2  lib/globalize/active_record.rb
@@ -54,7 +54,7 @@ def translates(*attr_names)
after_save :save_translations!
has_many :translations, :class_name => translation_class.name,
- :foreign_key => class_name.foreign_key,
+ :foreign_key => self.name.foreign_key,
:dependent => :delete_all,
:extend => HasManyExtensions
Something went wrong with that request. Please try again.