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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 239b2a695c0d5f563b5cfafe90109af97eb75c5b
4
- data.tar.gz: b892996335c741604d03c77ddef14094659329d5
3
+ metadata.gz: 7011bfb6ff2df0c0fc0844ba14c366dc5d99455c
4
+ data.tar.gz: 79051bd02716a6d3f7023f5e8af9ef949c4b43c2
5
5
  SHA512:
6
- metadata.gz: 9a98bc5c1457f70b182db9f11f2b18ae19f17ee88be8066bcbbc29611906484b812fd646d7f34d619df19bd880f566c6207a376ee640eb8dc2623cd035436411
7
- data.tar.gz: bb47520feda9488fdf8466d342450649b9361df41052f30264091900406c78886487f2d173bcd1a7216e38fd3dc7301df04c5e97eb9956f7b0d2fd15314b0d54
6
+ metadata.gz: 9ed3ec0889ff73286b9a2e18d1f6ce4512d9714bb2ff13be377628f472aa049715a4a8a562731d644a7ab3e6760c8db09b38da9685294b3b38e6d05f3cf9ffaa
7
+ data.tar.gz: 67d8a37185928f9495518b3b4c664f7897a1c54d0b45ebf7f81c8e248a5622db74dc2bbb679a58bd46d0644eeb6ebc19e05707aa1da2aa9c1ea90556749f40e1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
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 ruby lib
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.5"
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
- @grid = initialize_grid @<%= plural_table_name %>
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_scaffold_controller_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff