Module: Spreadhead::Page::Callbacks

Defined in:
lib/spreadhead/page.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

Hook for callbacks.

:title should act like a url.



60
61
62
63
64
# File 'lib/spreadhead/page.rb', line 60

def self.included(model)
  model.class_eval do
    acts_as_url :title, :sync_url => true, :only_when_blank => true
  end
end