Sha256: 33248d8a00780305a93293f3c7faede69bbcfec69d45d8984b398c0895df10bf
Contents?: true
Size: 687 Bytes
Versions: 6
Compression:
Stored size: 687 Bytes
Contents
module LadyJosephine module Concerns module Model extend ActiveSupport::Concern included do include Pingable include ServerUuid include SirTrevorImages belongs_to :lady_josephine_ping_user, class_name: LadyJosephine.user_class_name LadyJosephine::Whitelist.instance.whitelist(self) def content_data_hash if self.content_data.present? && !(self.content_data == "{}") JSON.parse(self.content_data) else {"server_uuid" => nil} end end def content_data_hash=(hash) self.content_data = hash.to_json end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems