Sha256: d65a3bcf56b5ce37f44386e07f41e0e436baafe849488da96986172cdaba7985
Contents?: true
Size: 1.39 KB
Versions: 5
Compression:
Stored size: 1.39 KB
Contents
RamenRails.config do |config| # Your Ramen Organization ID config.organization_id = "<%= @organization_id %>" # Your Ramen Organization Secret <%- if @organization_secret -%> config.organization_secret = "<%= @organization_secret %>" <%- else -%> # config.organization_secret = "SEKRIT" <%- end -%> ## Important note regarding `-> {}` vs. `Proc.new {}` ## ## Use `Proc.new {}` and not `-> {}`. There's some weirdness ## in how instance_eval works that will bite you in the butt ## otherwise. ## How we access the currently logged in user. This object ## must respond to #email(string), #id(string), and #name(string) # # config.current_user = Proc.new { current_user } ## How we access the labels for the currently logged in user. ## This is an array of strings. # # config.current_user_labels = Proc.new { current_user.labels.map(&:name) } ## How we access the current user "value". This is ## a Float. It can represent whatever you want. ## ## If config.current_user is empty, this will be ignored # # config.current_user_value = Proc.new { current_user_value } ## How we access the current company in user. This object ## must respond to #id(string), #name(string), #url(string). ## It MAY respond to #value (a float) ## ## If config.current_user is empty, this will be ignored # # config.current_company = Proc.new { current_company } end
Version data entries
5 entries across 5 versions & 1 rubygems