metamaps--metamaps/app/models/logged_out_user.rb

8 lines
132 B
Ruby
Raw Normal View History

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