Sha256: e3001fd2460818306bbfd7ac415c71f0d11f3183b497ddff3c711c59503afb12

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 Bytes

Contents

module RailsSettings
  module Fields
    class Float < ::RailsSettings::Fields::Base
      def deserialize(value)
        value.to_f
      end

      def serialize(value)
        deserialize(value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-settings-cached-2.9.1 lib/rails-settings/fields/float.rb
rails-settings-cached-2.9.0 lib/rails-settings/fields/float.rb