Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Var < ActiveRecord::Base
- @@current_vars = Var.find(:first, :order => "year DESC")
- class << self
- def current_year
- @@current_vars.year
- end
- def current_start_date
- @@current_vars.start_date
- end
- def current_end_date
- @@current_vars.end_date
- end
- def current_discount
- @@current_vars.discount
- end
- def current_preregistration_ends
- @@current_vars.preregistration_ends
- end
- def current_verify_service
- @@current_vars.verify_service
- end
- def current_previous_year_start
- @@current_vars.previous_year_start
- end
- def current_previous_year_end
- @@current_vars.previous_end_date
- end
- end
- end
Add Comment
Please, Sign In to add comment