Sha256: 99a2a647c3033a1c7cd93b98b140bd0f780b4984579a69b740508ea1edd60dc0

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

class User
  include DataMapper::Resource

  property :id, Serial
  property :username, String
  
  devise :database_authenticatable, :confirmable, :lockable, :recoverable,
         :registerable, :rememberable, :timeoutable, :token_authenticatable,
         :trackable, :validatable

  timestamps :at
  
  def self.create!(*args)
    create(*args)
  end
  
  def self.destroy_all
    all.destroy
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
dm-devise-1.1.0 test/rails_app/app/data_mapper/user.rb
dm-devise-1.1.0 test/rails_app/app/data_mapper_active_model/user.rb
dm-devise-0.1.0 test/rails_app/app/data_mapper/user.rb
dm-devise-0.1.0 test/rails_app/app/data_mapper_active_model/user.rb