Skip to content

Commit

Permalink
fix rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Oct 25, 2024
1 parent da0636a commit 7dc1911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_scaffold/attribute_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def multi_parameter_attributes(attributes)

def assign_locking_column(parent_record, attributes)
return unless parent_record.persisted? && parent_record.locking_enabled? &&
attributes.include?(parent_record.class.locking_column)
attributes.include?(parent_record.class.locking_column)
parent_record.write_attribute parent_record.class.locking_column, attributes[parent_record.class.locking_column]
end

Expand Down

0 comments on commit 7dc1911

Please sign in to comment.