Method: FormStalker::Data::CheckLogic#initialize

Defined in:
lib/form_stalker/data/check_logic.rb

#initialize(attributes) ⇒ CheckLogic

Returns a new instance of CheckLogic.



8
9
10
11
12
13
14
# File 'lib/form_stalker/data/check_logic.rb', line 8

def initialize(attributes)
  if attributes.is_a? String
    attributes = Helpers.json_to_hash "{#{js_to_json(attributes)}}"
  end

  super attributes
end