lib/avo/dynamic_router.rb in avo-2.1.2.pre2 vs lib/avo/dynamic_router.rb in avo-2.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Avo module DynamicRouter def self.routes(router) - Rails.application.eager_load! if Rails.env.development? + Rails.application.eager_load! unless Rails.env.production? BaseResource.descendants .select do |resource| resource != :BaseResource end