Sha256: e181d80e53239f8fa2522e7063522b3be3f4f095deed17b7d27ae68b3e6163b5
Contents?: true
Size: 274 Bytes
Versions: 11
Compression:
Stored size: 274 Bytes
Contents
class PublishedElement < ActiveRecord::Base belongs_to :published_website belongs_to :published_element_record, :polymorphic => true belongs_to :published_by, :class_name => "User" def published_by_username self.published_by.username rescue '' end end
Version data entries
11 entries across 11 versions & 1 rubygems