Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing environment rb file

  • Loading branch information...
commit d663615d849c26938ebc8c866c3b212662fbccfd 1 parent 7e05a4a
@alexbiz alexbiz authored
View
14 app/models/payment_notification.rb
@@ -4,12 +4,12 @@ class PaymentNotification < ActiveRecord::Base
after_create :mark_request_as_purchased
private
- def mark_request_as_purchased
- if status == "Completed"
- request.update_attributes(
- :purchased_at => Time.now,
- :visible => true
- )
+ def mark_request_as_purchased
+ if status == "Completed"
+ request.update_attributes(
+ :purchased_at => Time.now,
+ :visible => true
+ )
+ end
end
- end
end
View
2  config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Transit::Application.initialize!
+IVFReports::Application.initialize!
View
2  config/routes.rb
@@ -19,7 +19,7 @@
resources :requests, :only => [:test, :create] do
get 'test', :on => :collection
end
- resources :payment_notifications, :only => :create
+ resources :payment_notifications, :only => [:create]
resources :datapoints
match '/register', :to => 'users#new'
Please sign in to comment.
Something went wrong with that request. Please try again.