metamaps--metamaps/app/models/logged_out_user.rb
2016-03-11 17:16:04 +11:00

7 lines
132 B
Ruby

class LoggedOutUser
FALSE_METHODS = [:is_logged_in?]
FALSE_METHODS.each { |method| define_method(method, -> { false }) }
end