bootstrap_validator_rails 0.0.5 → 0.0.6
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f97fdd5bd95e2b0ccec5e2ba7c5f09c49bc14e5d
|
|
4
|
+
data.tar.gz: 4413ee1e361aef621ef33935634f1b23bd4573ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4cd0cffee07a3790ded8fb41c412c8b06b026b1f471b0a1e05b61d1382ee52e039f8ca20ac28908f5bc5efc7b303cc4bf5123c3b182f91d937ccbb064fc0ce8
|
|
7
|
+
data.tar.gz: 6e9c27d9ab1492e393c5063adb8af7e99e697341462bfdc7cfceb721bbcf30fd8399a2bd584913bceca81c4445109ee721e0f2d22e3c66e69df9a44a23664647
|
|
@@ -32,7 +32,7 @@ end
|
|
|
32
32
|
|
|
33
33
|
module BootstrapValidatorRails
|
|
34
34
|
module Helper
|
|
35
|
-
def
|
|
35
|
+
def bootstrap_validation_form_for(object, options = {}, &block)
|
|
36
36
|
options.reverse_merge!({builder: BootstrapValidatorRails::FormBuilder})
|
|
37
37
|
bootstrap_form_for(object, options, &block)
|
|
38
38
|
end
|
|
@@ -3,7 +3,7 @@ require 'test_helper'
|
|
|
3
3
|
class BootstrapValidatorRailsTest < ActionView::TestCase
|
|
4
4
|
def setup
|
|
5
5
|
@post = Post.new(title: 'An awesome title')
|
|
6
|
-
@form = view.
|
|
6
|
+
@form = view.bootstrap_validation_form_for(@post, url: '#') do |f|
|
|
7
7
|
f.text_field :title
|
|
8
8
|
end
|
|
9
9
|
end
|
data/test/dummy/log/test.log
CHANGED
|
@@ -777,5 +777,17 @@ BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
|
777
777
|
[1m[35m (0.1ms)[0m begin transaction
|
|
778
778
|
-------------------------------------------------------------
|
|
779
779
|
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
780
|
+
-------------------------------------------------------------
|
|
781
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
782
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
784
|
+
-------------------------------------------------------------
|
|
785
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
786
|
+
-------------------------------------------------------------
|
|
787
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
788
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
790
|
+
-------------------------------------------------------------
|
|
791
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
780
792
|
-------------------------------------------------------------
|
|
781
793
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|