document_form 0.9 → 0.9.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/README.textile +1 -1
- data/Rakefile +1 -1
- data/document_form.gemspec +2 -2
- data/lib/document_form.rb +1 -1
- metadata +2 -2
data/README.textile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
h1. Form Builder for Mongoid
|
|
1
|
+
h1. Form Builder for Mongoid: DocumentForm
|
|
2
2
|
|
|
3
3
|
DocumentForm is a Rails3 FormBuilder DSL that aims to provide a super fast and simple form-building tool to edit Mongoid documents in Rails3.
|
|
4
4
|
DocumentForm is a fork of <a href="http://github.com/justinfrench/formtastic">formtastic</a>.
|
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'echoe'
|
|
4
4
|
|
|
5
|
-
Echoe.new('document_form', '0.9') do |p|
|
|
5
|
+
Echoe.new('document_form', '0.9.1') do |p|
|
|
6
6
|
p.description = "Form Builder for Rails3 and MongoID"
|
|
7
7
|
p.url = "http://github.com/mcasimir/document_form"
|
|
8
8
|
p.author = "Maurizio Casimirri"
|
data/document_form.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{document_form}
|
|
5
|
-
s.version = "0.9"
|
|
5
|
+
s.version = "0.9.1"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = [%q{Maurizio Casimirri}]
|
|
9
|
-
s.date = %q{2011-12-
|
|
9
|
+
s.date = %q{2011-12-08}
|
|
10
10
|
s.description = %q{Form Builder for Rails3 and MongoID}
|
|
11
11
|
s.email = %q{maurizio.cas@gmail.com}
|
|
12
12
|
s.extra_rdoc_files = [%q{README.textile}, %q{lib/document_form.rb}, %q{lib/document_form/i18n.rb}]
|
data/lib/document_form.rb
CHANGED
|
@@ -375,7 +375,7 @@ module DocumentForm #:nodoc:
|
|
|
375
375
|
|
|
376
376
|
if @object
|
|
377
377
|
key = @object.new_record? ? :create : :update
|
|
378
|
-
object_name = @object.class.
|
|
378
|
+
object_name = @object.class.name.humanize
|
|
379
379
|
else
|
|
380
380
|
key = :submit
|
|
381
381
|
object_name = @object_name.to_s.send(@@label_str_method)
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: document_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version:
|
|
5
|
+
version: 0.9.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Maurizio Casimirri
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-12-
|
|
13
|
+
date: 2011-12-08 00:00:00 Z
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
16
|
description: Form Builder for Rails3 and MongoID
|