Sha256: 5df7eef6ab07861e4e1def988bcd8d658d64bbed68b07d9f9dad72ee7d915103
Contents?: true
Size: 477 Bytes
Versions: 40
Compression:
Stored size: 477 Bytes
Contents
module Locomotive module API module Forms class MembershipForm < BaseForm attrs :account_id, :role attr_accessor :site attr_reader :account_email def initialize(site, attributes = {}) self.site = site super(attributes) end def account_email=(email) self.account_id = Account.find_by(email: email).try(:_id) @account_email = email end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems