simple_descriptor 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1 -0
- data/lib/simple_descriptor/class_descriptor.rb +1 -1
- data/lib/simple_descriptor/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
|
@@ -187,7 +187,7 @@ module SimpleDescriptor #:nodoc:
|
|
|
187
187
|
if respond_to? :columns_hash
|
|
188
188
|
columns_hash.each do |k, v|
|
|
189
189
|
describe k.to_sym, :as => v.type
|
|
190
|
-
describe k.to_sym, :as => :required if !v.null
|
|
190
|
+
describe k.to_sym, :as => :required if !v.null && k!= primary_key
|
|
191
191
|
case v.type
|
|
192
192
|
when :string : describe k.to_sym, :as => :limited, :with_value => v.limit
|
|
193
193
|
end
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: simple_descriptor
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.2.
|
|
7
|
-
date: 2007-06-
|
|
6
|
+
version: 0.2.1
|
|
7
|
+
date: 2007-06-07 00:00:00 +01:00
|
|
8
8
|
summary: add description to your classes and make your ActiveRecord validations smarter
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|