Sha256: 12210be687a8904dcd012724768ea8ec12a8ba5febd36baef5b04cd01c389d75
Contents?: true
Size: 878 Bytes
Versions: 2
Compression:
Stored size: 878 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' # Change default limit : # f.default_limit = 25 # Allow to open multiple notes : # f.multiple_notes = true end if defined?(Footnotes) && Footnotes.respond_to?(:setup)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-footnotes-7.1.0 | lib/generators/templates/rails_footnotes.rb |
rails-footnotes-7.0.1 | lib/generators/templates/rails_footnotes.rb |