Sha256: 42b467632731b24d4989113ef5b2cf02c41c727ba4e27d096bb0f933f56b690b

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 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 }


  ## How we access the current company "value". This is
  ## a Float. It can represent whatever you want.
  ##
  ## If config.current_user is empty, this will be ignored
  #
  # config.current_company_value = Proc.new { current_company_value }


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramen-rails-0.0.1 lib/rails/generators/ramen/config/ramen.rb.erb