lib/negroku/config.rb in negroku-2.5.1 vs lib/negroku/config.rb in negroku-2.5.2

- old
+ new

@@ -12,11 +12,11 @@ class Negroku::ConfigFactory include Virtus.model def self.loaded_in_bundler(name) - Bundler.load.dependencies.any? {|a| a.name == name} + Bundler.locked_gems.specs.any? {|a| a.name == name} end attribute :bower, Negroku::Feature, default: { name: "bower", enabled: File.exists?('bower.json') } @@ -24,10 +24,10 @@ attribute :bundler, Negroku::Feature, default: { name: "bundler", enabled: File.exists?('Gemfile') } attribute :delayed_job, Negroku::Feature, default: { - name: "delayed_job", enabled: loaded_in_bundler('delayed_jobs') + name: "delayed_job", enabled: loaded_in_bundler('delayed_job') } attribute :nginx, Negroku::Feature, default: { name: "nginx", enabled: true, required: true }