Run generator for Rails footnotes
This commit is contained in:
parent
da70b1750a
commit
4348344f8a
2 changed files with 8 additions and 0 deletions
3
.rails_footnotes
Normal file
3
.rails_footnotes
Normal file
|
@ -0,0 +1,3 @@
|
|||
#this code temporarily disables notes for all controllers
|
||||
# Footnotes::Filter.notes = []
|
||||
|
5
config/initializers/rails_footnotes.rb
Normal file
5
config/initializers/rails_footnotes.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
if defined?(Footnotes) && Rails.env.development?
|
||||
Footnotes.run! # first of all
|
||||
|
||||
# ... other init code
|
||||
end
|
Loading…
Reference in a new issue