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 +4 -4
- data/lib/presenter_object/base.rb +1 -1
- data/lib/presenter_object/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf999a3550b156005e366092f2d77aaba5f952cb
|
4
|
+
data.tar.gz: 615d3fe81abd4086c77145503bff4492b08e8b33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|