Sha256: fdc37731a8a26c3292de53985603cd01b88e49efb7e30e94281ec0955fa5f2ca

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module SchemaPlus::Columns
  module Middleware
    module Model

      module Columns

        def after(env)
          env.columns.each do |column|
            column.model = env.model
          end
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
schema_plus_columns-1.0.1 lib/schema_plus/columns/middleware/model.rb
schema_plus_columns-1.0.1.beta.1 lib/schema_plus/columns/middleware/model.rb
schema_plus_columns-1.0.0 lib/schema_plus/columns/middleware/model.rb