Sha256: b5b87ef0bb55d0d75054ecdb911a271a6b8285b93c6e1470c7911d47f68fc288
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
module NetSuiteRails class PollTimestamp < ActiveRecord::Base serialize :value validates :key, presence: true, uniqueness: true def self.for_class(klass) self.where(key: "netsuite_poll_#{klass.to_s.downcase}").first_or_initialize end def self.table_name_prefix 'netsuite_' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netsuite_rails-0.3.6 | lib/netsuite_rails/poll_timestamp.rb |