Permalink
Browse files

push up bootstrap imgs + bi-directional rewards + is_admin? check for…

… notify_controller.
  • Loading branch information...
1 parent 2d5956a commit c2345d2cf58442f48c66cb55d974eb41027639ea @bakavic bakavic committed Apr 11, 2012
View
2 app/controllers/notify_controller.rb
@@ -3,7 +3,7 @@
class NotifyController < ApplicationController
before_filter :check_if_sign_in?, :except=>[:verify_email]
- #before_filter :check_if_admin? , :only=>[:edit,:destroy]
+ before_filter :check_if_admin? , :only=>[:send_verification_email,:send_enquiry_email,:sms_notify]
def send_verification_email
@user = User.find(params[:user_id])
View
2 app/models/reward.rb
@@ -1,5 +1,5 @@
class Reward < ActiveRecord::Base
- belongs_to :user
+ belongs_to :user , :inverse_of => :reward
end
View
2 config/environments/development.rb
@@ -25,7 +25,7 @@
#CSV
config.gem "fastercsv"
config.gem "tweet-button"
- config.gem 'gattica'
+ #config.gem 'gattica'
#config.gem "gchart"
#Mailer
config.action_mailer.delivery_method = :smtp
View
BIN public/img/glyphicons-halflings-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/img/glyphicons-halflings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c2345d2

Please sign in to comment.