lib/troo/models/member.rb in troo-0.0.7 vs lib/troo/models/member.rb in troo-0.0.8

- old
+ new

@@ -12,15 +12,18 @@ attribute :url attribute :external_member_id index :external_member_id + def self.remote(id, options = { mode: :member }) + External::Member.fetch(id, options).first + end + def decorator(options = {}) - MemberDecorator.new(self, options) + Decorators::Member.new(self, options) end - def presenter - MemberPresenter.new(self) + def presenter(options = {}) + Presenters::Member.new(self, options) end end end -