view test/exemplars/auth_source_exemplar.rb @ 874:12771bc38f20 feature_123

Close obsolete branch feature_123
author Chris Cannam
date Sat, 02 Apr 2011 09:37:51 +0100
parents 513646585e45
children cbb26bc654de
line wrap: on
line source
class AuthSource < ActiveRecord::Base
  generator_for :name, :method => :next_name

  def self.next_name
    @last_name ||= 'Auth0'
    @last_name.succ!
    @last_name
  end
end