lib/hanami/model.rb in hanami-model-1.3.2 vs lib/hanami/model.rb in hanami-model-1.3.3

- old
+ new

@@ -1,24 +1,26 @@ -require 'rom' -require 'concurrent' -require 'hanami/entity' -require 'hanami/repository' +# frozen_string_literal: true +require "rom" +require "concurrent" +require "hanami/entity" +require "hanami/repository" + # Hanami # # @since 0.1.0 module Hanami # Hanami persistence # # @since 0.1.0 module Model - require 'hanami/model/version' - require 'hanami/model/error' - require 'hanami/model/configuration' - require 'hanami/model/configurator' - require 'hanami/model/mapping' - require 'hanami/model/plugins' + require "hanami/model/version" + require "hanami/model/error" + require "hanami/model/configuration" + require "hanami/model/configurator" + require "hanami/model/mapping" + require "hanami/model/plugins" # @api private # @since 0.7.0 @__repositories__ = Concurrent::Array.new @@ -31,11 +33,11 @@ # @api private attr_reader :loaded # @since 0.7.0 # @api private - alias loaded? loaded + alias_method :loaded?, :loaded end # Configure the framework # # @since 0.1.0 @@ -68,10 +70,10 @@ end # @since 0.7.0 # @api private def self.container - raise 'Not loaded' unless loaded? + raise "Not loaded" unless loaded? @container end # @since 0.1.0