i18n_scaffold_controller_template 1.0.2 → 1.0.3

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: 10cf80e8eeb9344ee4cbb555f9a51da31157fae0
4
- data.tar.gz: 7ab85c07e1073a8edfa2af6d455e0a66b10930b9
3
+ metadata.gz: e8180e73477d210c0429b64ca642e1e94172d335
4
+ data.tar.gz: fa0eecaf4afe374bcdfbdeb894a6fe8c85e20fe2
5
5
  SHA512:
6
- metadata.gz: 2cd3a294cb0d6d0cc5038d7d5dad6f117da132f70fc9e1edca096b37bddb0db468e55b7848131387ab2ab5e7eaefd479111c1ea09a3d6f78fd632aa145fbbe83
7
- data.tar.gz: df33ea39205345be832d1e5d1bb49e43daac28f601072f8148e8894332eb05dceb7bfa3a998629ccd2362d0fd9cda484a4eac8ab7abf6119ee25e785dd341f59
6
+ metadata.gz: ae3504dc521280db6d5417cb345cec3b6e4088f9560a3bb47997e24b755c747e402b15d3d6d6ad65e8610564fbcc79f94c98cbfec0aca470419138971b998055
7
+ data.tar.gz: dc7311a506efe4aa97af5d6412e9c7eefb256650672ef7ee06f9715863e2fcb164ad4b9f9c02f00255ac87ac97add18b68d3401612398f5603dc3b3b0f48510d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -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: i18n_scaffold_controller_template 1.0.2 ruby lib
5
+ # stub: i18n_scaffold_controller_template 1.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "i18n_scaffold_controller_template"
9
- s.version = "1.0.2"
9
+ s.version = "1.0.3"
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 = "2014-10-06"
14
+ s.date = "2014-11-09"
15
15
  s.description = "Scaffold controller template expoiting i18n and aware of cancan and WiceGrid"
16
16
  s.email = "dima@koulikoff.ru"
17
17
  s.extra_rdoc_files = [
@@ -86,7 +86,10 @@ class <%= controller_class_name %>Controller < ApplicationController
86
86
  <%- if attributes_names.empty? -%>
87
87
  params[<%= ":#{singular_table_name}" %>]
88
88
  <%- else -%>
89
- params.require(<%= ":#{singular_table_name}" %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
89
+ list = [
90
+ <%= attributes_names.map { |name| ":#{name}" }.join(', ') %>
91
+ ]
92
+ params.require(<%= ":#{singular_table_name}" %>).permit(list)
90
93
  <%- end -%>
91
94
  end
92
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_scaffold_controller_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec