diff --git a/lib/plutus.rb b/lib/plutus.rb index ec12afd9..e9d15d83 100644 --- a/lib/plutus.rb +++ b/lib/plutus.rb @@ -1,9 +1,18 @@ # Plutus require "rails" +require "jquery-rails" +require "jquery-ui-rails" +require "kaminari" module Plutus class Engine < Rails::Engine isolate_namespace Plutus + + config.to_prepare do + Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c| + require_dependency(c) + end + end end diff --git a/plutus.gemspec b/plutus.gemspec index 1735bb9e..93f817a3 100644 --- a/plutus.gemspec +++ b/plutus.gemspec @@ -20,9 +20,9 @@ Gem::Specification.new do |s| "README.markdown" ] s.add_dependency("rails", "> 4.0") - s.add_dependency("jquery-rails", ">= 3.0") - s.add_dependency("jquery-ui-rails", ">= 4.2.2") - s.add_dependency("kaminari", "~> 1.0") + s.add_dependency("jquery-rails", "~> 4.0") + s.add_dependency("jquery-ui-rails", "~> 5.0") + s.add_dependency("kaminari", "~> 1.1") s.add_development_dependency("yard") s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE", "Rakefile", "README.markdown"] s.homepage = %q{http://github.com/mbulat/plutus} @@ -40,4 +40,3 @@ Gem::Specification.new do |s| else end end -