Class: HasUrl::Hooks
- Inherits:
-
Object
- Object
- HasUrl::Hooks
- Defined in:
- lib/has_url/hooks.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.init ⇒ Object
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 |