fine_print 2.3.0 → 2.3.1

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: bb595ef06e5a4534032ca5b53a451bf643d55057
4
- data.tar.gz: 448f987e0838f6db8ee5ceca70b94b292d2583d1
3
+ metadata.gz: 8fd843dfe050f713c606f4abd853060268ab0219
4
+ data.tar.gz: be4fb77d6b38481e1818e0b027e2898e1caf6ace
5
5
  SHA512:
6
- metadata.gz: 0a4d7b6f294854009c55012c8045fbb1f48ae9809cd1c5f6e3acb106f8d268de6473aa1aa6755598ff5003f4b56ed3b7fe358f3933e2c3bd25b82b02656b6e1b
7
- data.tar.gz: b0ee996920455b6354e66eafb088fc34ab10ffbbe282a6323a4b02644594b5ec652534e32168f4e1eeb21bc7c80f666b78e72c3674a69cf3dddb70b50725618b
6
+ metadata.gz: 2c552a2896a6adb058e3f2cd3be90ff5e53419584f8340191890493c7f612f06e72e4e60d7a37779bebe4108344797533728a92ee925161204f56f1106eede03
7
+ data.tar.gz: 99904649e084a6280d61092564709519bf4cbd7bb6552f3a9a25f043f61cfbcf8d24f80ffadb9ff6ba349c9029960cca8e73c32c316a53b758c5ede3e1adcfaa
@@ -12,7 +12,8 @@ module FinePrint
12
12
  validates :name, :presence => true, :format => /\A[\w-]+\z/
13
13
  validates :title, :presence => true
14
14
  validates :content, :presence => true
15
- validates :version, :uniqueness => {:scope => :name, :case_sensitive => false},
15
+ validates :version, :uniqueness => {:scope => :name,
16
+ :case_sensitive => false},
16
17
  :allow_nil => true
17
18
 
18
19
  default_scope lambda { order{[name.asc, version.desc]} }
@@ -5,8 +5,8 @@ module FinePrint
5
5
 
6
6
  validate :contract_published, :on => :create
7
7
 
8
- validates :contract, :presence => true,
9
- :uniqueness => {:scope => [:user_type, :user_id]}
8
+ validates :contract, :presence => true
9
+ validates :contract_id, :uniqueness => {:scope => [:user_type, :user_id]}
10
10
  validates :user, :presence => true
11
11
 
12
12
  default_scope { order(:contract_id, :user_type, :user_id) }
@@ -1,3 +1,3 @@
1
1
  module FinePrint
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
Binary file