chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -24,8 +24,8 @@ class ArticlePrice < ApplicationRecord
|
|||
|
||||
localize_input_of :price, :tax, :deposit
|
||||
|
||||
validates_presence_of :price, :tax, :deposit, :unit_quantity
|
||||
validates_numericality_of :price, :greater_than_or_equal_to => 0
|
||||
validates_numericality_of :unit_quantity, :greater_than => 0
|
||||
validates_numericality_of :deposit, :tax
|
||||
validates :price, :tax, :deposit, :unit_quantity, presence: true
|
||||
validates :price, numericality: { greater_than_or_equal_to: 0 }
|
||||
validates :unit_quantity, numericality: { greater_than: 0 }
|
||||
validates :deposit, :tax, numericality: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue