advanced_haml_scaffold_generator 2.0.0 → 2.1.0

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: e21a50c29830fea75bc79a186687a6bc211ba5a9
4
- data.tar.gz: 251b4a76c48808536d3e64756299a3e3dae6efd5
3
+ metadata.gz: da2ab79a54d6d1393e9546e9b3f3318b152d691a
4
+ data.tar.gz: 234e3112ce5d1c8d878d0d9b00e8f4eb094b2c08
5
5
  SHA512:
6
- metadata.gz: 0de8e5e5efed855c7aa430cdd2c61485d6b81335db2be6637a09b9476a8ac139421dc35302d1dce49f743a5b831979b5cb94abbf0d208083f99367b016c88773
7
- data.tar.gz: 888c74a2736089e5bc9c4034094fae974983baeac750e9a7fd172bda7bece6ccad6b17410631a118865b4f417bb436f75ce7f947a2d88429e12168ba3f209fa7
6
+ metadata.gz: a89aba0100bb4d798d9cfacc60212e5212cf8c8b34f1d866bc8e70a58b0c794451e31bd8a28df3d19f05b91d90c7cb225577d955d83cf57b84b2a7c4264babc5
7
+ data.tar.gz: d72e79e518000869b3d549c80aea23256af7bc887f6ac652c04b7212b265017fb8ffb8a45a340adcb205d1a26da6a0d6a3a352fdd5b26b20d7236931105b7868
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.1.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: advanced_haml_scaffold_generator 2.0.0 ruby lib
5
+ # stub: advanced_haml_scaffold_generator 2.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "advanced_haml_scaffold_generator"
9
- s.version = "2.0.0"
9
+ s.version = "2.1.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Dmitri Koulikoff"]
14
- s.date = "2016-08-26"
14
+ s.date = "2016-09-16"
15
15
  s.description = "Extention of the haml generator that generates templates with the use of i18n, cancan and WiceGrid, adds classes to buttons and uses :title helper"
16
16
  s.email = "dima@koulikoff.ru"
17
17
  s.extra_rdoc_files = [
@@ -4,9 +4,15 @@
4
4
 
5
5
  .form-inputs
6
6
  <%- attributes.each do |attribute| -%>
7
- = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.column_name %>
8
7
  <% if attribute.password_digest? -%>
8
+ = f.input :password
9
9
  = f.input :password_confirmation
10
+ <% else -%>
11
+ <% if attribute.reference? -%>
12
+ = f.association :<%= attribute.column_name.gsub(/_id$/, '') %>, prompt: t('.<%= attribute.column_name.gsub(/_id$/, '') %>', default: 'Choose')
13
+ <% else -%>
14
+ = f.input :<%= attribute.column_name %>
15
+ <% end -%>
10
16
  <% end -%>
11
17
  <%- end -%>
12
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advanced_haml_scaffold_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-26 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec