Sha256: 8a6294e2f9fd2c2d000d109a951fded36c43f0847ba9d51eeca99ece19b3d4cd

Contents?: true

Size: 163 Bytes

Versions: 4

Compression:

Stored size: 163 Bytes

Contents

class Group < ActiveRecord::Base
  has_many :memberships
  has_many :users, through: :memberships

  def created_at_as_csv
    created_at.strftime("%F")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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