Sha256: 7db4509733face02cd8c5ab949b265dd3ac7c53d6395639dd2d825aaa3c03e7f

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

class User < ActiveRecord::Base
  has_many :memberships
  has_many :groups, through: :memberships

  def updated_at_as_csv
    self.updated_at.strftime("%F %H:%M")
  end

  def one
    1
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
csv_rails-0.6.1 test/dummy/app/models/user.rb
csv_rails-0.6.0 test/dummy/app/models/user.rb
csv_rails-0.5.2 test/dummy/app/models/user.rb
csv_rails-0.5.1 test/dummy/app/models/user.rb
csv_rails-0.5.0 test/dummy/app/models/user.rb