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)
|