Sha256: 836a7a4dd4f55c5c977adf00dea33015989a6e635bd5392df48860929f8b9dda

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

module ContentsCore
  class ItemDatetime < Item
    alias_attribute :data, :data_datetime

    def init
      self.data = Time.now
      self
    end

    def self.permitted_attributes
      [ :data_datetime ]
    end

    def self.type_name
      'datetime'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
contents_core-0.2.5 app/models/contents_core/item_datetime.rb
contents_core-0.2.4 app/models/contents_core/item_datetime.rb
contents_core-0.2.2 app/models/contents_core/item_datetime.rb
contents_core-0.2.0 app/models/contents_core/item_datetime.rb
contents_core-0.1.9 app/models/contents_core/item_datetime.rb
contents_core-0.1.8 app/models/contents_core/item_datetime.rb