diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 8be765e..22fdae0 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -23,7 +23,10 @@ class Enterprise < Organization N_('Organization website'); N_('Historic and current context'); N_('Activities short description'); N_('City'); N_('State'); N_('Country'); N_('ZIP code') settings_items :organization_website, :historic_and_current_context, :activities_short_description, :zip_code, :city, :state, :country + settings_items :products_per_catalog_page, :type => :integer, :default => 6 + alias_method :products_per_catalog_page_before_type_cast, :products_per_catalog_page + validates_numericality_of :products_per_catalog_page, :allow_nil => true, :greater_than => 0 extend SetProfileRegionFromCityState::ClassMethods set_profile_region_from_city_state -- libgit2 0.21.2