Skip to content

Commit

Permalink
replace constantize w/ const_get
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@967 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information
technoweenie committed Mar 7, 2006
1 parent f36d2b9 commit 1965e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_versioned.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def versioned_columns

# Returns an instance of the dynamic versioned model
def versioned_class
"#{self.to_s}::#{versioned_class_name}".constantize
const_get versioned_class_name
end

# Rake migration task to create the versioned table using options passed to acts_as_versioned
Expand Down

0 comments on commit 1965e02

Please sign in to comment.