onotole 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2080cd2eb62c5d2661814feaaa4a18d2a692572e
4
- data.tar.gz: 66b782bc3f68d8ee5f3ce90bd95f5adcbe90ab65
3
+ metadata.gz: 75e4770808eaa85e6158c8f35bc3130a1b3b2211
4
+ data.tar.gz: 58adb22a4013faa297562ad19ca9bcba3476f2fb
5
5
  SHA512:
6
- metadata.gz: d880ed20bca4d964c64bdd244b6e7728d7dd0a275a12a3c297fe24e7d96dedb298cfb60d69a64c6d295ee50b2327e71aa27f68edddf801bcd32f5ea1a8630a32
7
- data.tar.gz: ef4cf50568566b1c223e6e80bbb0afa39eae6945aca78e3d22cd7cc225a59b505d5477d7a2f136fa22eb3e04f83c1d184cc5a43ceeeea53ee17e2e158cc76af5
6
+ metadata.gz: c5a8b5efa58a0e73e345a9be2033a835312a8d1286a93b78a1855df39295807de3b3f63f2e417dc8c349a47f4d5345055a1382c690265142a64457671af9ef44
7
+ data.tar.gz: 6637dd95b9dcbd16abc0ec87cbc116e5907b4c0b310ee3b767bacc886a442025bf7bfc5784898fad802b36826939508312d3df34b7ba06581127240f5d30078d
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3.1
data/README.md CHANGED
@@ -359,6 +359,7 @@ improvement
359
359
  * `Carrierwave` may be integrated with `mini_magick` and `ckeditor`, depend on
360
360
  user choice
361
361
  * Ability to use `AbstractModel` for easy code extension
362
+ * Custom FormBuilder initial setup
362
363
 
363
364
  ## Heroku
364
365
 
@@ -213,5 +213,20 @@ end
213
213
  copy_file 'seeds.rb', 'db/seeds.rb'
214
214
  mkdir_and_touch 'db/seeds'
215
215
  end
216
+
217
+ def add_custom_formbuilder
218
+ config = <<-DATA
219
+
220
+ config.after_initialize do
221
+ ActionView::Base.default_form_builder = FormBuilderExtension
222
+ end
223
+
224
+ DATA
225
+ inject_into_class 'config/application.rb', 'Application', config
226
+ File.open('app/helpers/form_builder_extension.rb', 'w') do |f|
227
+ f.write 'class FormBuilderExtension < ActionView::Helpers::FormBuilder'
228
+ f.write "\nend"
229
+ end
230
+ end
216
231
  end
217
232
  end
@@ -181,6 +181,7 @@ module Onotole
181
181
  build :apply_vendorjs_folder
182
182
  build :add_vendor_css_path
183
183
  build :add_fonts_autoload
184
+ build :add_custom_formbuilder
184
185
  end
185
186
 
186
187
  # def setup_stylesheets
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.2.8'
5
+ VERSION = '1.2.9'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onotole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-02 00:00:00.000000000 Z
12
+ date: 2016-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -196,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 2.3.0
199
+ version: 2.3.1
200
200
  required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  requirements:
202
202
  - - ">="