delegated_presenter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ class DelegatedPresenter::Base < SimpleDelegator
2
2
 
3
3
  @@presentable = {}
4
4
 
5
+ alias :presented_model :__getobj__
6
+
5
7
  def initialize(object)
6
8
  raise Presenter::NotPresentable, "#{self.presenter_class} cannot present a #{object.class}" unless self.presentable.include?(object.class.name)
7
9
  super(object)
@@ -1,3 +1,3 @@
1
1
  module DelegatedPresenter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delegated_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: