mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 02:06:04 +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:
|
||||
Exclude:
|
||||
- 'app/models/custom_field_value.rb'
|
||||
- 'app/models/query.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class CustomFieldValue
|
||||
attr_accessor :custom_field, :customized, :value, :value_was
|
||||
attr_accessor :custom_field, :customized, :value_was
|
||||
attr_reader :value
|
||||
|
||||
def initialize(attributes={})
|
||||
attributes.each do |name, v|
|
||||
|
||||
Reference in New Issue
Block a user