Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@kaspth kaspth released this 23 Nov 17:08
v0.4.0
c5bf0e6

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.