view test/exemplars/.svn/text-base/auth_source_exemplar.rb.svn-base @ 231:5d6e2819f3dd cannam-pre-20110113-merge

Merge from branch "feature_20". This initial implementation of #20 has been tested, but needs to be tested again in the proper context.
author Chris Cannam
date Thu, 17 Feb 2011 18:35:11 +0000
parents 513646585e45
children
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