Sha256: e38a06256ab50d57705d0a8500d319c1503361a6dba804f00452b40ce5e76669

Contents?: true

Size: 188 Bytes

Versions: 13

Compression:

Stored size: 188 Bytes

Contents

module Mautic
  class Form < Model

    def assign_attributes(source = nil)
      self.attributes = {name: source['name'], fields: source['fields']} if source.is_a? Hash
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mautic-2.3.1 app/models/mautic/form.rb
mautic-2.2.2 app/models/mautic/form.rb
mautic-2.1.1 app/models/mautic/form.rb
mautic-0.1.8 app/models/mautic/form.rb
mautic-0.1.7 app/models/mautic/form.rb
mautic-1.0.5 app/models/mautic/form.rb
mautic-0.1.6 app/models/mautic/form.rb
mautic-0.1.4 app/models/mautic/form.rb
mautic-1.0.3 app/models/mautic/form.rb
mautic-1.0.1 app/models/mautic/form.rb
mautic-0.1.3 app/models/mautic/form.rb
mautic-0.1.2 app/models/mautic/form.rb
mautic-0.1.1 app/models/mautic/form.rb