Project

General

Profile

« Previous | Next » 

Revision 1bbee158

Added by Dmitri Dolguikh over 10 years ago

fixes #4161: plugin ActiveRecord models that do no define 'name' method no longer throw NoMethodError when to_s is called

(cherry picked from commit 12cc808b8b39d9796671b63c5200d4d2e5d3ef79)

View differences:

lib/core_extensions.rb
def id_and_type
"#{id}-#{self.class.table_name.humanize}"
end
alias_attribute :to_label, :name
alias_attribute :to_label, :name_method
alias_attribute :to_s, :to_label
def self.unconfigured?

Also available in: Unified diff