Sha256: 1ff5e4e5f8a37a078c2d2cdca255703a83158366995a4f020bd32e04f9f38095
Contents?: true
Size: 395 Bytes
Versions: 7
Compression:
Stored size: 395 Bytes
Contents
module Forms class GroupForm < Kadmin::Form delegate_attributes :name, :owner_id delegate_association :owner, to: 'Forms::PersonForm' def initialize(*args) super raise(ArgumentError, 'Model given should be a group') unless @model.is_a?(Group) end def owner_attributes=(attributes) form = owner form.assign_attributes(attributes) end end end
Version data entries
7 entries across 7 versions & 1 rubygems