Commit 66d97a47 authored by Mark Chao's avatar Mark Chao

Allow duck-type access to member

parent 7abd6894
......@@ -9,4 +9,8 @@ class Approver < ActiveRecord::Base
def find_by_user_id(user_id)
find_by(user_id: user_id)
end
def member
user
end
end
......@@ -13,4 +13,8 @@ class ApproverGroup < ActiveRecord::Base
approver_groups.joins(:group).merge(public_or_visible_groups)
end
def member
group
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment