i18n_scaffold_controller_template 1.0.0 → 1.0.1

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: c474366d6c15215e9ddbf5eed8b0541ee62a3490
4
- data.tar.gz: d83ffd9a758a7d27125acd93aeda65203732682b
3
+ metadata.gz: f5f1867e590ffe014710ca0ff00fcfeb7cc4e163
4
+ data.tar.gz: ee05e0bda99656a93c336c801ec2b86287fbc579
5
5
  SHA512:
6
- metadata.gz: fe563a852eab28c3afc6bf5ae79482bc3b29281d2a7a2f17ae6360204a0661280ff02fe1e17f9ec18870d873822b55bdd7b9d649d6a457266d9e102b52b8e4bc
7
- data.tar.gz: eefd799acdd0acb8bc6f2e58afbca422a42a07534cdd03b5fab8a8ebe6add96eb2101e0f80e1dbaefbee9169f489932308a5b3364c85c02117dd72bebbe63789
6
+ metadata.gz: 96f4d28c0cd6d8f07f297048da2877438f9d7d6c473c72edea67ca3aab5c3e82158c2a37aded8ac86e259a31299481266eab09d0c036c284af284285c7875ae6
7
+ data.tar.gz: 5b8973a3ba0e06101234cdafc7e98b63e253c626951441210e07849eef6e7874ed38570785bebe9429e4cdb65384657d841c830c4261268c1cf3a474e266a241
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -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.0 ruby lib
5
+ # stub: i18n_scaffold_controller_template 1.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "i18n_scaffold_controller_template"
9
- s.version = "1.0.0"
9
+ s.version = "1.0.1"
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-09-12"
14
+ s.date = "2014-10-06"
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 = [
@@ -6,7 +6,7 @@ require_dependency "<%= namespaced_file_path %>/application_controller"
6
6
  class <%= controller_class_name %>Controller < ApplicationController
7
7
 
8
8
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
9
- #before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
9
+ # before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
10
10
  load_and_authorize_resource
11
11
  <% else -%>
12
12
  before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
@@ -14,7 +14,7 @@ class <%= controller_class_name %>Controller < ApplicationController
14
14
 
15
15
  # GET <%= route_url %>
16
16
  def index
17
- #@<%= plural_table_name %> = <%= orm_class.all(class_name) %>
17
+ # @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
18
18
  <% if defined? Wice::WiceGrid -%>
19
19
  @grid = initialize_grid @<%= plural_table_name %>
20
20
  <% end -%>
@@ -27,7 +27,7 @@ class <%= controller_class_name %>Controller < ApplicationController
27
27
  # GET <%= route_url %>/new
28
28
  def new
29
29
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
30
- #@<%= singular_table_name %> = <%= orm_class.build(class_name) %>
30
+ # @<%= singular_table_name %> = <%= orm_class.build(class_name) %>
31
31
  <% else -%>
32
32
  @<%= singular_table_name %> = <%= orm_class.build(class_name) %>
33
33
  <% end -%>
@@ -40,7 +40,7 @@ class <%= controller_class_name %>Controller < ApplicationController
40
40
  # POST <%= route_url %>
41
41
  def create
42
42
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
43
- #@<%= singular_table_name %> = <%= orm_class.build(class_name, "#{singular_table_name}_params") %>
43
+ # @<%= singular_table_name %> = <%= orm_class.build(class_name, "#{singular_table_name}_params") %>
44
44
  <% else -%>
45
45
  @<%= singular_table_name %> = <%= orm_class.build(class_name, "#{singular_table_name}_params") %>
46
46
  <% end -%>
@@ -68,11 +68,12 @@ class <%= controller_class_name %>Controller < ApplicationController
68
68
  end
69
69
 
70
70
  private
71
+
71
72
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
72
73
  # Use callbacks to share common setup or constraints between actions.
73
- #def set_<%= singular_table_name %>
74
- # @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
75
- #end
74
+ # def set_<%= singular_table_name %>
75
+ # @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
76
+ # end
76
77
  <% else -%>
77
78
  # Use callbacks to share common setup or constraints between actions.
78
79
  def set_<%= singular_table_name %>
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.0
4
+ version: 1.0.1
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-09-12 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec