Class: ActsAsShellscriptExecutable::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/acts_as_shellscript_executable.rb,
lib/acts_as_shellscript_executable.rb

Class Method Summary collapse

Class Method Details

.insertObject



18
19
20
21
22
23
24
# File 'lib/acts_as_shellscript_executable.rb', line 18

def self.insert
  if defined?(ActiveRecord)
    require 'active_record'
    ActiveRecord::Base.send \
      :include, ActiveRecord::Acts::ShellscriptExecutable
  end
end