Sha256: d7d4a752b4cf10b574522f3450c056820b2b70ba869afbc7231f84cf1a77f1af
Contents?: true
Size: 755 Bytes
Versions: 5
Compression:
Stored size: 755 Bytes
Contents
require 'acts_as_shellscript_executable/version' require 'acts_as_shellscript_executable/active_record/' \ 'acts/shellscript_executable' module ActsAsShellscriptExecutable if defined? Rails::Railtie require 'rails' class Railtie < Rails::Railtie initializer 'acts_as_shellscript_executable.insert_into_active_record' do ActiveSupport.on_load :active_record do ActsAsShellscriptExecutable::Railtie.insert end end end end class Railtie def self.insert if defined?(ActiveRecord) require 'active_record' ActiveRecord::Base.send \ :include, ActiveRecord::Acts::ShellscriptExecutable end end end end ActsAsShellscriptExecutable::Railtie.insert
Version data entries
5 entries across 5 versions & 1 rubygems