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



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

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