presenter_object 0.1.3 → 0.1.4

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: 1a9942a2e26e8e458e80037f6257954a447d7fc3
4
- data.tar.gz: a241516a1cb985f18092dd19536ab114ba4158f8
3
+ metadata.gz: cf999a3550b156005e366092f2d77aaba5f952cb
4
+ data.tar.gz: 615d3fe81abd4086c77145503bff4492b08e8b33
5
5
  SHA512:
6
- metadata.gz: e309a2c3064a171f4581771cdd79a7c051179ec0137c23b3fa79f27e619cfafb8c9f4a0ba0e5dd59ce76dc6e0f716b8bc799520d05eb4d85ef23e73528a51c70
7
- data.tar.gz: dfbb9d8c37f05c4092ab7e31ea7731e36f95038aeec188a0c8d89db50971bc67ebe779105d46c8df1d59661447dfdabf1d20a8daa333d399f23262483f4e380a
6
+ metadata.gz: 94f7711cd062e0e26af025bd7e31bf75884de56ada1b6ebfe3067efaaef3976dd660fed9dec6e29a2e6ea54278f033e5591aff8c0200691ceb81f29bbdbd8a26
7
+ data.tar.gz: 2bcef43107baa86eaab14ba74f87fb520e1fd2c82d0ce5cb11254a11fe19b874f4488e7015532f4fdbcc3acf325b50bb7904970dadcc8c52935877808ac6051d
@@ -34,7 +34,7 @@ class PresenterObject::Base
34
34
 
35
35
  attr_reader :object, :class, :to_param, :view_context
36
36
 
37
- def initialize(object, view_context)
37
+ def initialize(object, view_context = nil)
38
38
  @object = object
39
39
  @class = object.class # impersonate object's class
40
40
  @to_param = object.id # let link helpers know the object's id
@@ -1,3 +1,3 @@
1
1
  module PresenterObject
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presenter_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler