From 4348344f8ac3ad1b13e36e43ef839f0ad4b80a91 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 29 Mar 2013 19:53:07 -0400 Subject: [PATCH] Run generator for Rails footnotes --- .rails_footnotes | 3 +++ config/initializers/rails_footnotes.rb | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 .rails_footnotes create mode 100644 config/initializers/rails_footnotes.rb diff --git a/.rails_footnotes b/.rails_footnotes new file mode 100644 index 0000000..1019a70 --- /dev/null +++ b/.rails_footnotes @@ -0,0 +1,3 @@ +#this code temporarily disables notes for all controllers +# Footnotes::Filter.notes = [] + diff --git a/config/initializers/rails_footnotes.rb b/config/initializers/rails_footnotes.rb new file mode 100644 index 0000000..da9d58e --- /dev/null +++ b/config/initializers/rails_footnotes.rb @@ -0,0 +1,5 @@ +if defined?(Footnotes) && Rails.env.development? + Footnotes.run! # first of all + + # ... other init code +end