Class: HasUrl::Hooks

Inherits:
Object
  • Object
show all
Defined in:
lib/has_url/hooks.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.initObject



3
4
5
6
7
8
# File 'lib/has_url/hooks.rb', line 3

def self.init
  if defined?(ActiveRecord)
    require 'has_url/validations'
    ActiveRecord::Base.send(:extend, HasUrl::Validations)
  end
end