classiccms 0.5.10 → 0.5.11

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Classiccms #:nodoc
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.11"
3
3
  end
@@ -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.10
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-08-28 00:00:00.000000000 Z
12
+ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec