Project

General

Profile

Patch #30465 » acts_as_customizable.rb.patch

Pavel Rosický, 2019-01-18 19:50

View differences:

acts_as_customizable.rb (working copy)
return if self.included_modules.include?(Redmine::Acts::Customizable::InstanceMethods)
cattr_accessor :customizable_options
self.customizable_options = options
has_many :custom_values, lambda {includes(:custom_field).order("#{CustomField.table_name}.position")},
has_many :custom_values, lambda {includes(:custom_field)},
:as => :customized,
:inverse_of => :customized,
:dependent => :delete_all,
    (1-1/1)