Sha256: d00f8c4e36e0952a8b927b6164c949dd145577fa95a33cf52be9ce9ca431db48
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true require 'phi_attrs' require 'rails' module PhiAttrs class Railtie < Rails::Railtie initializer 'phi_attrs.initialize' do |_app| ActiveSupport.on_load(:active_record) do ActiveRecord::Base.send :extend, PhiAttrs::Model ActionController::Base.send :include, PhiAttrs::Controller end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phi_attrs-0.2.4 | lib/phi_attrs/railtie.rb |
phi_attrs-0.2.2 | lib/phi_attrs/railtie.rb |
phi_attrs-0.2.1 | lib/phi_attrs/railtie.rb |
phi_attrs-0.2.0 | lib/phi_attrs/railtie.rb |