Class: Astrochimp::Signup

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
IdCode
Defined in:
app/models/astrochimp/signup.rb

Constant Summary collapse

STATUS_NEW =

Constants

0
STATUS_SUBSCRIBED =
1
STATUS_INVITED =
2

Class Method Summary collapse

Methods included from IdCode

#id_code

Class Method Details

.find(id_or_code) ⇒ Object



28
29
30
31
32
33
34
# File 'app/models/astrochimp/signup.rb', line 28

def self.find(id_or_code)
  if id_or_code.is_a? Integer
    super(id_or_code)
  else
    find_by_id_code(id_or_code)
  end
end