Skip to content

Instantly share code, notes, and snippets.

View dcaliri's full-sized avatar

Diego Caliri dcaliri

  • Eventioz
  • Mendoza, Argentina
View GitHub Profile
@dcaliri
dcaliri / nginx.conf
Created October 15, 2014 01:58
/etc/nginx/nginx.conf
# This conf sample is fetched from http://unicorn.bogomips.org/examples/nginx.conf
worker_processes 4;
user root;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log warn;
events {
diff --git a/app/models/registration.rb b/app/models/registration.rb
index ac4c0e7..823f956 100644
--- a/app/models/registration.rb
+++ b/app/models/registration.rb
@@ -962,12 +962,15 @@ class Registration < ActiveRecord::Base
self.country == country
end
- def can_be_cancelled_by_attendee?
- # we can't cancel a registration that has been more than 7 days from creation