lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.56 vs lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.57
- old
+ new
@@ -1,10 +1,10 @@
module Octopress
module Ink
module Plugins
- extend self
attr_reader :registered
+ extend self
@registered = false
@plugins = []
@user_plugins = []
@@ -41,19 +41,22 @@
def plugins
[@theme].concat(@plugins).concat(@user_plugins).compact
end
def reset
- @static_files = []
@registered = false
- @css_tags = []
- @js_tags = []
- Bootstrap.reset
end
def register
unless @registered
@registered = true
+ @static_files = []
+ @css_tags = []
+ @js_tags = []
+ Bootstrap.reset
+ PluginAssetPipeline.reset
+
+ puts 'registering'
plugins.each(&:register)
end
end
def add_files