Class: Content::ContentView
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Content::ContentView
- Defined in:
- app/models/content/content_view.rb
Instance Attribute Summary collapse
-
#source_repositories ⇒ Object
Returns the value of attribute source_repositories.
Instance Method Summary collapse
Instance Attribute Details
#source_repositories ⇒ Object
Returns the value of attribute source_repositories.
41 42 43 |
# File 'app/models/content/content_view.rb', line 41 def source_repositories @source_repositories end |
Instance Method Details
#clone_repos ⇒ Object
47 48 49 50 51 52 |
# File 'app/models/content/content_view.rb', line 47 def clone_repos return unless @source_repositories Repository.where(:id => @source_repositories).each do |repository| repository.publish self end end |
#to_label ⇒ Object
43 44 45 |
# File 'app/models/content/content_view.rb', line 43 def to_label name || "#{originator.to_label} - #{DateTime.now.strftime("%m/%d/%Y")}".parameterize end |