Permalink
Browse files

Fixing environment rb file

  • Loading branch information...
1 parent 7e05a4a commit d663615d849c26938ebc8c866c3b212662fbccfd @alexbiz alexbiz committed Mar 24, 2012
Showing with 9 additions and 9 deletions.
  1. +7 −7 app/models/payment_notification.rb
  2. +1 −1 config/environment.rb
  3. +1 −1 config/routes.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,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Transit::Application.initialize!
+IVFReports::Application.initialize!
View
@@ -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'

0 comments on commit d663615

Please sign in to comment.