Class: Effective::PageBanner

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/page_banner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user.



6
7
8
# File 'app/models/effective/page_banner.rb', line 6

def current_user
  @current_user
end

Instance Method Details

#bodyObject

As per has_many_rich_texts



43
44
45
# File 'app/models/effective/page_banner.rb', line 43

def body
  rich_text_body
end

#to_sObject



38
39
40
# File 'app/models/effective/page_banner.rb', line 38

def to_s
  name.presence || model_name.human
end