mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
add empty line after guard clause to app/models/version.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20264 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
be0cb8e3c9
commit
aaebab85c5
@ -167,10 +167,9 @@ class Version < ActiveRecord::Base
|
|||||||
if attrs.respond_to?(:to_unsafe_hash)
|
if attrs.respond_to?(:to_unsafe_hash)
|
||||||
attrs = attrs.to_unsafe_hash
|
attrs = attrs.to_unsafe_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless attrs.is_a?(Hash)
|
return unless attrs.is_a?(Hash)
|
||||||
attrs = attrs.deep_dup
|
|
||||||
|
|
||||||
|
attrs = attrs.deep_dup
|
||||||
# Reject custom fields values not visible by the user
|
# Reject custom fields values not visible by the user
|
||||||
if attrs['custom_field_values'].present?
|
if attrs['custom_field_values'].present?
|
||||||
editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
|
editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user