resource_renderer 1.2.5 → 1.2.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: bb5d68013f9b4f727e286c0ec864006ae701bc0e
4
- data.tar.gz: 0e336f96a7c31aaa7ffb95c9dd3cd06f16c5f40c
3
+ metadata.gz: 60d698eeffefb491be6bb2bc9eeb9a6a2357c83e
4
+ data.tar.gz: 2190a273079f6c92292cd13f749291723bd1c699
5
5
  SHA512:
6
- metadata.gz: f3e3f2f87a9f9991462378d95c5111bd3ddaba6c10e4cfd4b51805293c370c31958f03eb2a745c07bfe626f033707cfc1e5d0a516e79d8d850a3f667ac7e2332
7
- data.tar.gz: 334578e17d45e9fdaaeee478f815f7a021bf035af25fd7cd9fc4d0931c327a354a87aa14126b6bcc74573132b16279d81543d6db1a0a9700a9f15c0f2a56579c
6
+ metadata.gz: 48223ad05645e083b49c43ed84d351ff2891f27aa126d757f8943cfc6ffd4b144691c4dd390111315b81e03a1d888353a5e3b30bfd344032b27cfa5231c03a2d
7
+ data.tar.gz: 7b725cff4ca408a44a42192bb8d70c186cab45ffdbbd94b04249b3ebf2fd61eb8c3903c4940f86141268aa0f9ce20d1a088eddf78f1ff85786e23364123f5cdf
@@ -3,6 +3,7 @@ module ResourceRenderer
3
3
  class Base
4
4
  attr_accessor :model, :helper
5
5
  alias_method :h, :helper
6
+ alias_method :resource, :model
6
7
 
7
8
  def initialize(model, helper)
8
9
  @model, @helper = model, helper
@@ -0,0 +1,2 @@
1
+ class DefaultCollectionRenderer < ResourceRenderer::CollectionRenderer::Base
2
+ end
@@ -0,0 +1,2 @@
1
+ class DefaultResourceRenderer < ResourceRenderer::ResourceRenderer::Base
2
+ end
@@ -1,3 +1,3 @@
1
1
  module ResourceRenderer
2
- VERSION = '1.2.5'
2
+ VERSION = '1.2.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,6 +202,7 @@ files:
202
202
  - app/collection_renderers/bootstrap_media_object_collection_renderer.rb
203
203
  - app/collection_renderers/bootstrap_table_collection_renderer.rb
204
204
  - app/collection_renderers/bootstrap_thumbnail_collection_renderer.rb
205
+ - app/collection_renderers/default_collection_renderer.rb
205
206
  - app/collection_renderers/resource_renderer/collection_renderer/base.rb
206
207
  - app/collection_renderers/table_collection_renderer.rb
207
208
  - app/collection_renderers/timeline_collection_renderer.rb
@@ -211,6 +212,7 @@ files:
211
212
  - app/resource_renderers/bootstrap_attribute_table_resource_renderer.rb
212
213
  - app/resource_renderers/bootstrap_media_object_resource_renderer.rb
213
214
  - app/resource_renderers/bootstrap_thumbnail_resource_renderer.rb
215
+ - app/resource_renderers/default_resource_renderer.rb
214
216
  - app/resource_renderers/resource_renderer/resource_renderer/base.rb
215
217
  - app/resource_renderers/table_resource_renderer.rb
216
218
  - app/resource_renderers/text_resource_renderer.rb