-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #913: Deferred ORM (ActiveRecord) models loading
- Loading branch information
Showing
7 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ require "doorkeeper/version" | |
|
||
Gem::Specification.new do |s| | ||
s.name = "doorkeeper" | ||
s.version = Doorkeeper::VERSION | ||
s.version = Doorkeeper.gem_version | ||
s.authors = ["Felipe Elias Philipp", "Tute Costa", "Jon Moss"] | ||
s.email = %w([email protected]) | ||
s.homepage = "https://github.com/doorkeeper-gem/doorkeeper" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
module Doorkeeper | ||
VERSION = "4.2.6".freeze | ||
def self.gem_version | ||
Gem::Version.new VERSION::STRING | ||
end | ||
|
||
module VERSION | ||
# Semantic versioning | ||
MAJOR = 4 | ||
MINOR = 2 | ||
TINY = 6 | ||
|
||
# Full version number | ||
STRING = [MAJOR, MINOR, TINY].compact.join('.') | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
..._record_belongs_to_required_by_default.rb → ...ig/initializers/new_framework_defaults.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Require `belongs_to` associations by default. This is a new Rails 5.0 | ||
# default, so it is introduced as a configuration option to ensure that apps | ||
# made on earlier versions of Rails are not affected when upgrading. | ||
if Rails.version.to_i >= 5 | ||
if Rails::VERSION::MAJOR >= 5 | ||
Rails.application.config.active_record.belongs_to_required_by_default = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters