refinerycms-retailers 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66a93a4c847f41defdb1d68ca2f4cfde87f56415
4
- data.tar.gz: ac4b22b22278d6bae7a069ae98f04a16c9f644be
3
+ metadata.gz: a3cfd05af1ac1034662f381497f2246c3ef4b9a0
4
+ data.tar.gz: f53cd7446fb38c59dd773a47c0ece788d3eadcd9
5
5
  SHA512:
6
- metadata.gz: 9b957b6273f29018766dcb5ef9feabcfaf966397523f3c40c360953cfbf8807fc5dda29036998010e25d6f1e01f04dd4813ff2059003e5228e1705dd7682e4a8
7
- data.tar.gz: 9972572c7343ece1872b03a424ecde3cf2fc538719a8869e647ef6eefbda42688c06b0f6c1d06f9192d84a1600a999a6e51ff346632c4f8135d3cd72360db018
6
+ metadata.gz: c1a22bd1886606ab5682b36b09643c764154a9f00f44db229664d5fdf9d46cb0d196b372ed4e03b8439631ce24486a07159b57552c9143a144bd2c851bf1addd
7
+ data.tar.gz: f244f17eebcf7fa6c3b86f44a58c751bec9585c952413801bf98fc8237fb572d6161145d609b4d255c6790d1cd285beae364f049eb6f63fda3f5d7587478a5a9
@@ -4,6 +4,7 @@ module Refinery
4
4
  class RetailersController < ::Refinery::AdminController
5
5
  crudify :'refinery/retailers/retailer',
6
6
  paging: false,
7
+ include: [:translations],
7
8
  order: "lower(title) ASC"
8
9
 
9
10
  helper :'refinery/retailers/retailers'
@@ -7,6 +7,7 @@ module Refinery
7
7
 
8
8
  before_validation :smart_add_url_protocol
9
9
 
10
+ validates :title, presence: true
10
11
  validates :address, presence: true, uniqueness: true
11
12
 
12
13
  acts_as_indexed fields: [:title, :contact, :address, :country_code, :state_code, :city] if defined?(Refinery::ActsAsIndexed::Engine)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-retailers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Sanchez