Class: Comment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/comment.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.attributesObject

match #to_a


20
21
22
23
24
25
26
27
# File 'app/models/comment.rb', line 20

def self.attributes
  [
    'commenter',
    'cart comment',
    'created_at',
    'updated_at'
  ]
end

Instance Method Details

#to_aObject

match .attributes


10
11
12
13
14
15
16
17
# File 'app/models/comment.rb', line 10

def to_a
  [
    self.user_email_address,
    self.comment_text,
    self.updated_at,
    I18n.l(self.updated_at)
  ]
end