Sha256: a1205475f3ac86b264c45bba2564871ac54ba7aa82b1342380e312b81c97e6b8

Contents?: true

Size: 217 Bytes

Versions: 5

Compression:

Stored size: 217 Bytes

Contents

Spree::Address.class_eval do
  belongs_to :city, class_name: 'Spree::City'

  validates :number, :numericality => {greater_than: 0}, :presence => true
  validates :district, length: { maximum: 150}, presence: true
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
solidus_br_common-1.1.2 app/models/spree/address_decorator.rb
solidus_br_common-1.1.1 app/models/spree/address_decorator.rb
solidus_br_common-1.1.0 app/models/spree/address_decorator.rb
spree_br_common-3.0.1 app/models/spree/address_decorator.rb
spree_br_common-3.0.0 app/models/spree/address_decorator.rb