mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00: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:
parent
6972d7e982
commit
21cc761b53
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user