Sha256: 94637760612a37d59f019cbd4bcb00ff8186863ea5b62d3245892c69d0193ca6

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

module Notable
  class Request < ActiveRecord::Base
    self.table_name = "notable_requests"

    belongs_to :user, polymorphic: true, optional: true
    if ActiveRecord::VERSION::STRING.to_f >= 7.1
      serialize :params, coder: JSON
    else
      serialize :params, JSON
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notable-0.5.2 app/models/notable/request.rb
notable-0.5.1 app/models/notable/request.rb