Sha256: 4465b4a7072a301fea0f234ae7fa9e3d46c79e4f6dfa972a9db610f9a9e750ae

Contents?: true

Size: 319 Bytes

Versions: 18

Compression:

Stored size: 319 Bytes

Contents

class PublishedElement < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  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

18 entries across 18 versions & 1 rubygems

Version Path
knitkit-3.2.0 app/models/published_element.rb
knitkit-3.0.0 app/models/published_element.rb
knitkit-2.1.15 app/models/published_element.rb
knitkit-2.1.14 app/models/published_element.rb
knitkit-2.1.13 app/models/published_element.rb
knitkit-2.1.12 app/models/published_element.rb
knitkit-2.1.11 app/models/published_element.rb
knitkit-2.1.10 app/models/published_element.rb
knitkit-2.1.9 app/models/published_element.rb
knitkit-2.1.8 app/models/published_element.rb
knitkit-2.1.7 app/models/published_element.rb
knitkit-2.1.6 app/models/published_element.rb
knitkit-2.1.5 app/models/published_element.rb
knitkit-2.1.4 app/models/published_element.rb
knitkit-2.1.3 app/models/published_element.rb
knitkit-2.1.2 app/models/published_element.rb
knitkit-2.1.1 app/models/published_element.rb
knitkit-2.1.0 app/models/published_element.rb