10 lines
207 B
Ruby
10 lines
207 B
Ruby
class ApplicationController < ActionController::Base
|
|
protect_from_forgery
|
|
|
|
helper_method :can_use_image_mode?
|
|
|
|
def can_use_image_mode?
|
|
user_signed_in? && current_user.image_mode_tester?
|
|
end
|
|
end
|
|
|