classiccms 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,9 @@ require 'mongoid'
|
|
2
2
|
Mongoid::Fields.option :input do |model, field, value|
|
3
3
|
#model.validates_presence_of field if value
|
4
4
|
end
|
5
|
+
Mongoid::Fields.option :options do |model, field, value|
|
6
|
+
#model.validates_presence_of field if value
|
7
|
+
end
|
5
8
|
class Base
|
6
9
|
include Mongoid::Document
|
7
10
|
include Mongoid::Timestamps
|
data/lib/classiccms/version.rb
CHANGED
@@ -24,6 +24,8 @@
|
|
24
24
|
%select{:name=>"[#{model}][#{key}(1i)]"}
|
25
25
|
= select_options year_choices(0, 6), record[key].year
|
26
26
|
- when 'dropdown'
|
27
|
+
%select{:name => name}
|
28
|
+
= select_options info.options[:options], record[key]
|
27
29
|
- when 'image'
|
28
30
|
%p.image_select Selecteer image
|
29
31
|
%input{:type => 'hidden', :id => 'file_select', :name=> name, :value => record[key]}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: classiccms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|