app/models/unidom/action/searching.rb in unidom-action-1.17.6 vs app/models/unidom/action/searching.rb in unidom-action-1.17.7

- old
+ new

@@ -6,11 +6,11 @@ self.table_name = 'unidom_searchings' include Unidom::Common::Concerns::ModelExtension - validates :resource_name, presence: true, length: { maximum: self.columns_hash['resource_name'].limit } - validates :platform_name, presence: true, length: { maximum: self.columns_hash['platform_name'].limit } + validates :resource_name, presence: true, length: { in: 1..self.columns_hash['resource_name'].limit } + validates :platform_name, presence: true, length: { in: 1..self.columns_hash['platform_name'].limit } validates :platform_version, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 } validates :found_count, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 } validates :shown_count, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 } validates :per_page, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 }