josevalim-rails-footnotes 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -1
- data/lib/rails-footnotes.rb +1 -1
- data/lib/rails-footnotes/footnotes.rb +4 -4
- metadata +2 -2
data/README
CHANGED
data/lib/rails-footnotes.rb
CHANGED
|
@@ -6,7 +6,7 @@ if RAILS_ENV == 'development'
|
|
|
6
6
|
# Load all notes
|
|
7
7
|
#
|
|
8
8
|
Dir[File.join(dir, 'rails-footnotes', 'notes', '*.rb')].each do |note|
|
|
9
|
-
require note
|
|
9
|
+
require note unless note =~ /queries/ && !defined?(ActiveRecord)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
# The footnotes are applied by default to all actions. You can change this
|
|
@@ -13,10 +13,10 @@ module Footnotes
|
|
|
13
13
|
@@notes += [ :assigns, :session, :cookies, :params, :filters, :routes, :env, :queries, :log, :general ]
|
|
14
14
|
|
|
15
15
|
# Change queries for rpm note when available
|
|
16
|
-
if defined?(NewRelic)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
end
|
|
16
|
+
# if defined?(NewRelic)
|
|
17
|
+
# @@notes.delete(:queries)
|
|
18
|
+
# @@notes << :rpm
|
|
19
|
+
# end
|
|
20
20
|
|
|
21
21
|
# :no_style => If you don't want the style to be appended to your pages
|
|
22
22
|
# :notes => Class variable that holds the notes to be processed
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: josevalim-rails-footnotes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-06-12 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|