Class: RailsSettingsUi::Types::CustomCoercions::Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-settings-ui/settings_form_coercible.rb

Class Method Summary collapse

Class Method Details

.[](value) ⇒ Object



16
17
18
# File 'lib/rails-settings-ui/settings_form_coercible.rb', line 16

def self.[](value)
  JSON.parse(value.gsub(/\=\>/, ':'))
end