lib/slices.rb in slices-1.0.2 vs lib/slices.rb in slices-1.0.3
- old
+ new
@@ -20,10 +20,11 @@
autoload :AvailableSlices, 'slices/available_slices'
autoload :ContainerParser, 'slices/container_parser'
autoload :GeneratorMacros, 'slices/generator_macros'
autoload :HasSlices, 'slices/has_slices'
autoload :HasAttachments, 'slices/has_attachments'
+ autoload :PageAsJSON, 'slices/page_as_json'
autoload :Renderer, 'slices/renderer'
autoload :PositionHelper, 'slices/position_helper'
autoload :SplitDateTimeField, 'slices/split_date_time_field'
autoload :Tree, 'slices/tree'
@@ -53,12 +54,11 @@
require 'slices/i18n'
require 'slices/will_paginate_mongoid'
require 'slices/will_paginate'
require 'set_link_renderer'
-if Rails.env.development?
- Slices::Config.use_snippets!
-end
+Slices::Config.use_snippets!
+
if Rails.env.test? || Rails.env.development?
require 'standard_tree'
end
Mime::Type.register_alias 'text/plain', :hbs