Sha256: 6b2eb8ba17d0e5569f3fd665f8b82dfc9fad5853f6d717aa2be6e217ddd2aacb

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

module KirguduBase
	class DynamicPages::Form < ::KirguduBase::DynamicPages::PageElement

		mergeable_attributes :url, :http_method, :is_ajax, :allow_client_validations, :properties, :elements, :parent

		fixable_attributes :parent, :elements, :properties

		validates_presence_of :name, :http_method
		validates_inclusion_of :http_method, in: KirguduBase::DynamicPages::Enums::SUPPORTED_HTTP_METHODS, allow_nil: true

		validates_inclusion_of :is_ajax, in: [:true, :false], allow_nil: true
		validates_inclusion_of :allow_client_validations, in: [:true, :false], allow_nil: true

		def initialize(options = {})
			self.url = nil
			self.url_path = nil
			self.http_method = nil
			self.allow_client_validations = nil
			self.is_ajax = nil
			self.properties = nil
			self.elements = nil
			self.parent = nil

			super(options)

		end

		attr_accessor :url
		attr_accessor :url_path
		attr_accessor :http_method
		attr_accessor :is_ajax
		attr_accessor :allow_client_validations
		attr_accessor :properties
		attr_accessor :elements
		attr_accessor :parent

	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kirgudu_base-0.0.25 app/models/kirgudu_base/dynamic_pages/form.rb
kirgudu_base-0.0.23 app/models/kirgudu_base/dynamic_pages/form.rb
kirgudu_base-0.0.22 app/models/kirgudu_base/dynamic_pages/form.rb