Closed mgrachev closed 8 years ago
Hi. To integrate with gem administrate, it is necessary to Setting.new.value return nil, otherwise we get this error:
Setting.new.value
nil
TypeError - no implicit conversion of nil into String: /usr/local/var/rbenv/versions/2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse_stream' /usr/local/var/rbenv/versions/2.2.2/lib/ruby/2.2.0/psych.rb:318:in `parse' /usr/local/var/rbenv/versions/2.2.2/lib/ruby/2.2.0/psych.rb:245:in `load' rails-settings-cached (0.5.2) lib/rails-settings/settings.rb:19:in `value'
Hi. To integrate with gem administrate, it is necessary to
Setting.new.value
returnnil
, otherwise we get this error: