Class: FactoryForm::Url

Inherits:
ShortAnswer show all
Defined in:
lib/factoryform/url.rb

Instance Attribute Summary

Attributes inherited from Field

#field_type, #hint, #id, #label, #required, #unique, #validation_format

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Url

Returns a new instance of Url.



3
4
5
6
7
# File 'lib/factoryform/url.rb', line 3

def initialize(options={})
  options[:field_type] = "short_answer"
  super(options)
  @validation_format = "url"
end