lib/doorkeeper.rb in doorkeeper-4.0.0.rc3 vs lib/doorkeeper.rb in doorkeeper-4.0.0.rc4
- old
+ new
@@ -52,10 +52,10 @@
def self.configured?
@config.present?
end
def self.database_installed?
- [AccessToken, AccessGrant, Application].all? { |model| model.table_exists? }
+ [AccessToken, AccessGrant, Application].all?(&:table_exists?)
end
def self.installed?
configured? && database_installed?
end