lazy_render 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81574d198dd2ab8fed96fd9ea5642ec5e420b007
|
4
|
+
data.tar.gz: effc45e2911247371fa568ea695ad17e04f24c97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0fcb2afb2adb75013227a20a4824395365f08602b6b47523843df4315a5180945325718ba5dbc4990ffe4a38894cb9ba440c567d90ea0c46ce32efe1d2ea98
|
7
|
+
data.tar.gz: b9096b82b44504eb1f590958b7601dcf0f46c4870d1866ab7e9387065ca5ce90cf7214967f7505f0b18bf02046133ffeacd899a48117275411dc61c2dc698d38
|
@@ -8,8 +8,7 @@ module LazyRender
|
|
8
8
|
return unless params['lazy_renders']
|
9
9
|
result = []
|
10
10
|
@data = {}
|
11
|
-
params['lazy_renders'].values.each do |v|
|
12
|
-
next unless v['name']
|
11
|
+
params['lazy_renders'].values.select { |v| v['name'] && respond_to?(v['name']) }.each do |v|
|
13
12
|
data = {
|
14
13
|
name: v['name'],
|
15
14
|
locals: v['locals'] || {}
|
@@ -22,6 +21,5 @@ module LazyRender
|
|
22
21
|
|
23
22
|
render json: result
|
24
23
|
end
|
25
|
-
|
26
24
|
end
|
27
25
|
end
|
data/lib/lazy_render/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy_render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vexus2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -175,7 +175,6 @@ files:
|
|
175
175
|
- spec/test_app/config/routes.rb
|
176
176
|
- spec/test_app/config/secrets.yml
|
177
177
|
- spec/test_app/db/development.sqlite3
|
178
|
-
- spec/test_app/db/schema.rb
|
179
178
|
- spec/test_app/db/test.sqlite3
|
180
179
|
- spec/test_app/log/development.log
|
181
180
|
- spec/test_app/log/test.log
|
@@ -239,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
238
|
version: '0'
|
240
239
|
requirements: []
|
241
240
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
241
|
+
rubygems_version: 2.4.5
|
243
242
|
signing_key:
|
244
243
|
specification_version: 4
|
245
244
|
summary: Delay load your actions
|
@@ -289,7 +288,6 @@ test_files:
|
|
289
288
|
- spec/test_app/config/secrets.yml
|
290
289
|
- spec/test_app/config.ru
|
291
290
|
- spec/test_app/db/development.sqlite3
|
292
|
-
- spec/test_app/db/schema.rb
|
293
291
|
- spec/test_app/db/test.sqlite3
|
294
292
|
- spec/test_app/log/development.log
|
295
293
|
- spec/test_app/log/test.log
|
data/spec/test_app/db/schema.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 0) do
|
15
|
-
|
16
|
-
end
|