Method: ApplicationHelper#read_only?

Defined in:
app/helpers/application_helper.rb

#read_only?Boolean

Is the network in read-only mode?

Returns:

  • (Boolean)


278
279
280
# File 'app/helpers/application_helper.rb', line 278

def read_only?
  RequestContext.redis.get('network/read_only') == 'true'
end