Sha256: f6f90eb6b50586104d2ad927486ec2f0ac6e94ba11881cebd6a3f9a45aa2af6b

Contents?: true

Size: 825 Bytes

Versions: 5

Compression:

Stored size: 825 Bytes

Contents

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, like
  # f.enabled = -> { User.current.admin? }
  # Beware of thread-safety though, Footnotes.enabled is NOT thread safe
  # and should not be modified outside this initializer.

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

  # 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 if defined?(Footnotes) && Footnotes.respond_to?(:setup)

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rails-footnotes-7.0.0 lib/generators/templates/rails_footnotes.rb
rails-footnotes-5.0.0 lib/generators/templates/rails_footnotes.rb
rails6-footnotes-5.0.2 lib/generators/templates/rails_footnotes.rb
rails6-footnotes-5.0.1 lib/generators/templates/rails_footnotes.rb
rails6-footnotes-5.0.0 lib/generators/templates/rails_footnotes.rb