1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/application_controller.rb

11 lines
207 B
Ruby
Raw Normal View History

2010-05-14 15:12:31 -07:00
class ApplicationController < ActionController::Base
protect_from_forgery
2011-06-27 12:33:34 -07:00
helper_method :can_use_image_mode?
def can_use_image_mode?
user_signed_in? && current_user.image_mode_tester?
end
2010-05-14 15:12:31 -07:00
end
2011-06-27 12:33:34 -07:00