Sha256: ed0dfbd80f7f30f8a4a2c5224ffa75957b7130d9167b6b9729bfe0f695b5dfac

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class User < ActiveRecord::Base
  has_many :memberships
  has_many :groups, through: :memberships
  validates :name, presence: :true
  include CsvRails::Import

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

  def one
    1
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csv_rails-0.7.0 test/dummy/app/models/user.rb