Sha256: 79d82e0ba8d2e0fadf70d8497605f00c0f70aa5c29815cb6c23cf49e89e0cd7f

Contents?: true

Size: 798 Bytes

Versions: 4

Compression:

Stored size: 798 Bytes

Contents

defined?(Footnotes) && Footnotes.setup do |f|
  # Wether or not to enable footnotes
  f.enabled = Rails.env.development?
  # You can also use a lambda / proc to conditionally toggle footnotes
  # Example :
  # f.enabled = -> { User.current.admin? }
  # Beware of thread-safety though, Footnotes.enabled is NOT thread safe
  # and should not be modified anywhere else.

  # Only toggle some notes :
  # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log, :general]

  # Change the prefix :
  # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d'

  # Disable style :
  # f.no_style = true

  # Lock notes to top right :
  # f.lock_top_right = true

  # Change font size :
  # f.font_size = '11px'

  # Allow to open multiple notes :
  # f.multiple_notes = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-footnotes-4.1.1 lib/generators/templates/rails_footnotes.rb
rails-footnotes-4.1.0 lib/generators/templates/rails_footnotes.rb
rails-footnotes-4.0.2 lib/generators/templates/rails_footnotes.rb
rails-footnotes-4.0.1 lib/generators/templates/rails_footnotes.rb