Sha256: d0287101c1019d7547fc045a5871d2f7d981fb5fa0c3b13779d97ca209600ecd

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

require 'schema_monkey'

require_relative '%GEM_NAME%/version'


# Load any mixins to ActiveRecord modules, such as:
#
#   require_relative '%GEM_NAME%/active_record/base'
#   require_relative '%GEM_NAME%/active_record/connection_adapters/abstract_adapter'
#
# Any modules named %GEM_MODULE%::ActiveRecord::<remainder-of-submodule-path>
# will be automatically #include'd in their counterparts in ::ActiveRecord


# Load any middleware, such as:
#
#   require_relative '%GEM_NAME%/middleware/model'
#
# Any modules named %GEM_MODULE%::Middleware::<submodule-path> will
# automatically have their .insert method called.


# Database adapter-specific mixin, if any, will automatically #include'd in
# its counterpart depending on which database adapter is in use.
module %GEM_MODULE%
  module ActiveRecord
    module ConnectionAdapters
      # autoload :MysqlAdapter, 'schema_plus_tables/active_record/connection_adapters/mysql_adapter'
      # autoload :PostgresqlAdapter, 'schema_plus_tables/active_record/connection_adapters/postgresql_adapter'
      # autoload :Sqlite3Adapter, 'schema_plus_tables/active_record/connection_adapters/sqlite3_adapter'
    end
  end
end


# Extra load-time initialization can go here.  You can delete this if you don't have any.
module %GEM_MODULE%
  def self.insert
  end
end

SchemaMonkey.register(%GEM_MODULE%)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
schema_dev-3.1.1 templates/gem/lib/GEM_NAME.rb
schema_dev-3.1.0 templates/gem/lib/GEM_NAME.rb
schema_dev-3.0.1 templates/gem/lib/GEM_NAME.rb
schema_dev-3.0.0 templates/gem/lib/GEM_NAME.rb
schema_dev-2.0.4 templates/gem/lib/GEM_NAME.rb
schema_dev-2.0.3 templates/gem/lib/GEM_NAME.rb
schema_dev-2.0.2 templates/gem/lib/GEM_NAME.rb
schema_dev-2.0.1 templates/gem/lib/GEM_NAME.rb