Sha256: 1063801d4c0a3c0c96f6d7299a9e40bced7048fc1864d1a8cc729dd52a66f745
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kadmin-0.3.2 | test/dummy/lib/forms/group_form.rb |