Module: Linkify::Model::ActiveRecord

Includes:
Base
Defined in:
lib/linkify/models/active_record.rb

Instance Method Summary collapse

Methods included from Base

#linkable, #linkable_method, #linkable_path, #linkable_records, #linkable_title, #linky_options

Instance Method Details

#linkable_by(title, path, finder_method = :all, options = {}, &block) ⇒ Object

Set attribute names and include the Linky module.



11
12
13
14
15
16
17
18
# File 'lib/linkify/models/active_record.rb', line 11

def linkable_by(title, path, finder_method=:all, options = {}, &block)
  linkable_init(
    :linkable     => true,
    :user_title   => title,
    :user_path    => path,
    :finder_method => finder_method
  )
end