Class: Seorel::Seorel

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Globalize
Defined in:
lib/seorel/seorel.rb

Instance Method Summary collapse

Instance Method Details

#admin_labelObject



21
22
23
# File 'lib/seorel/seorel.rb', line 21

def admin_label
  I18n.t('seorel.admin.label')
end

#description?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/seorel/seorel.rb', line 13

def description?
  description.present?
end

#image?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/seorel/seorel.rb', line 17

def image?
  image.present?
end

#title?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/seorel/seorel.rb', line 9

def title?
  title.present?
end