Skip to content

Releases: kaspth/conventional_extensions

v0.4.0

23 Nov 17:08
v0.4.0
c5bf0e6
Compare
Choose a tag to compare

What's Changed

  • Ignore extensions folders automatically in Rails.

    We've added a Railtie which automatically ignores every extensions folder by running Rails.autoloaders.main.ignore "**/extensions/**.rb".

    Fixed #8.

  • Remove automatic extension loading for Active Records.

    Due to the automatic extension loading in Active Record, there was no way for people to manually call load_extensions if they wanted to. And implementation wise there wasn't a way to sort that out. So the automatic loading support is out.

    Though you can get the old behavior back with this, which calls load_extensions when a new class inherits from ApplicationRecord:

    # app/models/application_record.rb
    class ApplicationRecord < ActiveRecord::Base
      extend ConventionalExtensions.load_on_inherited
    end

    Fixed #10.

v0.3.0

23 Nov 17:09
v0.3.0
68f3985
Compare
Choose a tag to compare

What's Changed

  • Fix loading nested extensions when they're in a separate file by @kaspth in #9

Full Changelog: v0.2.2...v0.3.0

v0.2.2

23 Nov 17:10
v0.2.2
f0a0bec
Compare
Choose a tag to compare

What's Changed

  • Fixes Zeitwerk 2.6.0 compatibility issue where extensions wouldn't load and throw an exception. See 7fc25f1

Full Changelog: v0.2.1...v0.2.2

v0.2.1

23 Nov 17:11
v0.2.1
fe4ef88
Compare
Choose a tag to compare

What's Changed

  • Fixes extend ConventionalExtensions.load_on_inherited not finding the right directory to load extensions from. See 1f6fe9c

Full Changelog: v0.2.0...v0.2.1

v0.2.0

23 Nov 17:12
v0.2.0
64a7279
Compare
Choose a tag to compare

What's Changed

  • Maintain one loader for the load_extensions session by @kaspth in #2

Full Changelog: v0.1.0...v0.2.0

v0.1.0

23 Nov 17:13
v0.1.0
21b37f5
Compare
Choose a tag to compare

Initial release 🎉