binco 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +10 -1
- data/app/helpers/binco/bootstrap_form_builder.rb +10 -0
- data/lib/binco/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb25e633d9f19544a32216670110029d71a8a0b2
|
4
|
+
data.tar.gz: bd5077086bced8b1ddeeaf42d5d8fde8fd2ea6a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1becc8809b2044cb38a4ef2785ad9dfdb2b6e888402131f981df085ad1241abf5019b30c891e20c3124df42ff68466561092f4fb65a864803c08d0085b4f96a6
|
7
|
+
data.tar.gz: bd09f90a1f5fd9666d7f28531b544c149f36a1d7bda2376054d16abb5162a5ebc2c3d70c63ecc2d062b36ee6eaa695eaa7e8a8f03e7fbd032362eeda5ef009b1
|
data/README.md
CHANGED
@@ -95,6 +95,15 @@ In your views, add an element to breadcrumb with:
|
|
95
95
|
```
|
96
96
|
Notice that first in first out. So be careful with the order.
|
97
97
|
|
98
|
-
|
98
|
+
Your can configure your placeholder and default url for the breadcrumb in an initializer:
|
99
|
+
|
100
|
+
```rb
|
101
|
+
Binco.configure do |binco|
|
102
|
+
binco.breadcrumb_before = { title: 'You are here' }
|
103
|
+
binco.breadcrumb_default = [
|
104
|
+
{ title: 'Index', url: '/' }
|
105
|
+
]
|
106
|
+
end
|
107
|
+
```
|
99
108
|
|
100
109
|
This project rocks and uses MIT-LICENSE.
|
@@ -5,6 +5,16 @@ module Binco
|
|
5
5
|
super name, options
|
6
6
|
end
|
7
7
|
|
8
|
+
def telephone_field(name, options = {})
|
9
|
+
options = add_class_to_options('form-control', options)
|
10
|
+
super name, options
|
11
|
+
end
|
12
|
+
|
13
|
+
def select(method, choices = nil, options = {}, html_options = {}, &block)
|
14
|
+
html_options = add_class_to_options('form-control', html_options)
|
15
|
+
super method, choices, options, html_options, &block
|
16
|
+
end
|
17
|
+
|
8
18
|
def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
|
9
19
|
if block_given?
|
10
20
|
super(method, collection, value_method, text_method, options, html_options, &block)
|
data/lib/binco/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Camacho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|