Sha256: c6a7757ef89acec31a97552912ad49191cb29aafd2c2be7433c181ef8bf46c42
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 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 } ## Custom Links to add to the Ramen Tray ## You can add up to 3. Each requires a `title`. ## Each requires a `callback` or an `href`. ## Links w/ `href` will have target="_blank". ## Callbacks are *strings* not JS functions. # # config.custom_links = [ # { # title: "Submit a bug", # callback: "$('#submit_bug').modal('show')" #<-- String! # }, # { # title: "Knowledge Base", # href: "/knowedge_base" # } # ] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramen-rails-0.0.8 | lib/rails/generators/ramen/config/ramen.rb.erb |