Module: Linkify::Model::Base
- Included in:
- ActiveRecord
- Defined in:
- lib/linkify/models/base.rb
Instance Method Summary collapse
- #linkable ⇒ Object
- #linkable_by ⇒ Object
- #linkable_method ⇒ Object
- #linkable_path ⇒ Object
- #linkable_records ⇒ Object
- #linkable_title ⇒ Object
- #linky_options ⇒ Object
Instance Method Details
#linkable ⇒ Object
24 25 26 |
# File 'lib/linkify/models/base.rb', line 24 def linkable [:linkable] end |
#linkable_by ⇒ Object
20 21 22 |
# File 'lib/linkify/models/base.rb', line 20 def linkable_by fail end |
#linkable_method ⇒ Object
36 37 38 |
# File 'lib/linkify/models/base.rb', line 36 def linkable_method [:finder_method] end |
#linkable_path ⇒ Object
32 33 34 |
# File 'lib/linkify/models/base.rb', line 32 def linkable_path [:user_path] end |
#linkable_records ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/linkify/models/base.rb', line 40 def linkable_records if linkable_method == :all all else linkable_method end end |
#linkable_title ⇒ Object
28 29 30 |
# File 'lib/linkify/models/base.rb', line 28 def linkable_title [:user_title] end |
#linky_options ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/linkify/models/base.rb', line 10 def if defined?(@linky_options) @linky_options elsif superclass.respond_to?(:linky_options) superclass. || { } else { } end end |