i18n_scaffold_controller_template 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/i18n_scaffold_controller_template.gemspec +2 -2
- data/lib/templates/rails/scaffold_controller/controller.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7011bfb6ff2df0c0fc0844ba14c366dc5d99455c
|
4
|
+
data.tar.gz: 79051bd02716a6d3f7023f5e8af9ef949c4b43c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed3ec0889ff73286b9a2e18d1f6ce4512d9714bb2ff13be377628f472aa049715a4a8a562731d644a7ab3e6760c8db09b38da9685294b3b38e6d05f3cf9ffaa
|
7
|
+
data.tar.gz: 67d8a37185928f9495518b3b4c664f7897a1c54d0b45ebf7f81c8e248a5622db74dc2bbb679a58bd46d0644eeb6ebc19e05707aa1da2aa9c1ea90556749f40e1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.6
|
@@ -2,11 +2,11 @@
|
|
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.
|
5
|
+
# stub: i18n_scaffold_controller_template 1.0.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "i18n_scaffold_controller_template"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.6"
|
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"]
|
@@ -16,9 +16,19 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|
16
16
|
# GET <%= route_url %>.json
|
17
17
|
def index
|
18
18
|
# @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
|
19
|
+
respond_to do |format|
|
20
|
+
format.html do
|
19
21
|
<% if defined? Wice::WiceGrid -%>
|
20
|
-
|
22
|
+
@grid = initialize_grid @<%= plural_table_name %>
|
23
|
+
<% end -%>
|
24
|
+
end
|
25
|
+
format.json do
|
26
|
+
<% if defined? Kaminari -%>
|
27
|
+
@<%= plural_table_name %> = @<%= plural_table_name %>.page(params[:page]) if params[:page].present?
|
28
|
+
@<%= plural_table_name %> = @<%= plural_table_name %>.per(params[:per_page]) if params[:per_page].present?
|
21
29
|
<% end -%>
|
30
|
+
end
|
31
|
+
end
|
22
32
|
end
|
23
33
|
|
24
34
|
# GET <%= route_url %>/1
|