app/models/unidom/action/searching.rb in unidom-action-1.17.4 vs app/models/unidom/action/searching.rb in unidom-action-1.17.5
- old
+ new
@@ -10,14 +10,14 @@
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 :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: { integer_only: true, greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
- validates :shown_count, presence: true, numericality: { integer_only: true, greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
- validates :per_page, presence: true, numericality: { integer_only: true, greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
- validates :total_pages, presence: true, numericality: { integer_only: true, greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
- validates :current_page, presence: true, numericality: { integer_only: true, greater_than_or_equal_to: 0, less_than: 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 }
+ validates :total_pages, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 }
+ validates :current_page, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 }
belongs_to :searcher_visitor, polymorphic: true
belongs_to :searcher_party, polymorphic: true
belongs_to :reason, class_name: 'Unidom::Action::Reason'