pres 1.4.0 → 1.4.1

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: b18f746158fe027b9d0cd1f39b721031470c73f1
4
- data.tar.gz: 5c83294f9fef973829a413e401d34c9be26b861f
3
+ metadata.gz: 56f81f8f4780bf77547fd95e4a887096ce5cf826
4
+ data.tar.gz: 7a38a3d761ad8614b04fa208911bf84e64b9a507
5
5
  SHA512:
6
- metadata.gz: 234823803f8bb4972733e96dd700af6a7149ea5bfb8742e84531f72f1cb44dfdb8267164d84505b4282fa5bf8a83c5218041e0f3d7a169161140294ac4472c1b
7
- data.tar.gz: 382e89787d1aed899ec35bb96554450af23495a55d0f7145274f3dd45739f96be41e04b7fbacf0a3da0e9b812bb5b17dbc49ac2b57213462ca7e22c6e72c40fe
6
+ metadata.gz: b6f6ab94d54b811eaadaffcef217552109a1431692b82f435c43542fc54e21688c2e5aa039f4bff8422dce76e9937b64538094d28afb7c4aeb233d1f9e9b0452
7
+ data.tar.gz: a11d34d228f17a2786c041f7243acd0ddf30ceec3dc567555a687ce084fd3477146fb8edaa83a45806b3d6091d944aebe9345b40556f42370f85e83d656515cb
@@ -2,18 +2,23 @@
2
2
  # Construct with object, view_context, and optional options
3
3
  module Pres
4
4
  class Presenter
5
- extend Forwardable
6
5
  include Presents
7
6
  include ViewDelegation
8
7
 
9
8
  attr_reader :object, :options
10
9
 
11
- def_delegators :object, :id, :to_partial_path
12
-
13
10
  def initialize(object, view_context = nil, options = {})
14
11
  @object = object
15
12
  @view_context = view_context
16
13
  @options = options
17
14
  end
15
+
16
+ def id
17
+ object.id
18
+ end
19
+
20
+ def to_partial_path
21
+ object.to_partial_path
22
+ end
18
23
  end
19
24
  end
@@ -1,3 +1,3 @@
1
1
  module Pres
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pres
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-10 00:00:00.000000000 Z
12
+ date: 2017-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler