Sha256: 66e9af9ce87ce851093748be36db7bc46e9a9ba6817c5e37a143160d1be3c02d

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

defined?(Footnotes) && Footnotes.setup do |f|
  # Whether 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

3 entries across 3 versions & 1 rubygems

Version Path
rails-footnotes-4.1.4 lib/generators/templates/rails_footnotes.rb
rails-footnotes-4.1.3 lib/generators/templates/rails_footnotes.rb
rails-footnotes-4.1.2 lib/generators/templates/rails_footnotes.rb