summaryrefslogtreecommitdiffstats
path: root/test/exemplars/member_role_exemplar.rb
blob: 0e1e6e70c6c1873c9be55627c3da51539b67983b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class MemberRole < ActiveRecord::Base
  generator_for :member, :method => :generate_member
  generator_for :role, :method => :generate_role

  def self.generate_role
    Role.generate!
  end

  def self.generate_member
    Member.generate!
  end
end