Method: Editus::Actions.json_parse

Defined in:
lib/editus/actions.rb

.json_parse(con) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/editus/actions.rb', line 23

def json_parse con
  arr = JSON.parse(con)
  arr.map do |haction|
    Action.new(**haction.symbolize_keys)
  end
rescue StandardError
  []
end