enju_core 0.1.1.pre5 → 0.1.1.pre6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_core/master_model.rb +1 -1
- data/lib/enju_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7bd5ddc527dbf678fd31e1fd1cd347fab0cc20
|
4
|
+
data.tar.gz: 8c8a1e1d666599d7cc0e183dcf004f00cf2c81c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8315794883565c82257cdf284a7e04698cbdf46931bb6de60bf81b7be65f24900ead1b970a69cefd82856fe731cc6aa9bbfd5e8fc559a6d5e62ce815ebd4807c
|
7
|
+
data.tar.gz: c752c003902a867d6fc8e1c8dbf2fd4e17be05f3a6ec719144a3bdcf2e44bcc6ddfe688766e387ccd2e645926bf0e73545ee7d8a2cb5cf92d10844cd059fedec
|
@@ -6,7 +6,7 @@ module MasterModel
|
|
6
6
|
acts_as_list
|
7
7
|
validates_uniqueness_of :name, :case_sensitive => false,
|
8
8
|
:message => I18n.t('Only lowercase letters and numbers are allowed.')
|
9
|
-
validates :name, :presence => true, :format => {:with => /\A[0-
|
9
|
+
validates :name, :presence => true, :format => {:with => /\A[0-9A-Za-z][0-9A-Za-z_\-\s]*[0-9a-z]\Z/}
|
10
10
|
validates :display_name, :presence => true
|
11
11
|
before_validation :set_display_name, :on => :create
|
12
12
|
normalize_attributes :name
|
data/lib/enju_core/version.rb
CHANGED