mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 10:16:03 +01:00
use "attr_reader" instead of "attr_accessor" for CustomFieldValue#value
CustomFieldValue#value= is already defined in this class. git-svn-id: http://svn.redmine.org/redmine/trunk@18615 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -495,7 +495,6 @@ Lint/DeprecatedClassMethods:
|
|||||||
|
|
||||||
Lint/DuplicateMethods:
|
Lint/DuplicateMethods:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/custom_field_value.rb'
|
|
||||||
- 'app/models/query.rb'
|
- 'app/models/query.rb'
|
||||||
- 'app/models/wiki_page.rb'
|
- 'app/models/wiki_page.rb'
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class CustomFieldValue
|
class CustomFieldValue
|
||||||
attr_accessor :custom_field, :customized, :value, :value_was
|
attr_accessor :custom_field, :customized, :value_was
|
||||||
|
attr_reader :value
|
||||||
|
|
||||||
def initialize(attributes={})
|
def initialize(attributes={})
|
||||||
attributes.each do |name, v|
|
attributes.each do |name, v|
|
||||||
|
|||||||
Reference in New Issue
Block a user