Sha256: 5e83241d5a132bb595508edf882c56ffd0ac464632c627c3f98fdc24a499bcb2

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

module Transit::Package
  module Page
    
    extend ActiveSupport::Concern
    
    included do
      class_attribute :delivery_template, instance_writer: false
      self.delivery_template = :page
      
      include Transit::Model::Base      
      
      field :name,        :type => String
      field :url,         :type => String
      field :keywords,    :type => Array
      field :description, :type => String
      
      embeds_many :contexts, :as => :package, :class_name => 'Transit::Context'      
    end
    
    def timestamp
      return "" if self.post_date.nil?
      self.post_date.strftime("%B %d, %Y")
    end
  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transit-0.0.2 lib/transit/package/page.rb