Class: Course::Settings::TopicsComponent

Inherits:
Component
  • Object
show all
Includes:
ActiveModel::Conversion
Defined in:
app/models/course/settings/topics_component.rb

Instance Method Summary collapse

Instance Method Details

#paginationObject


16
17
18
# File 'app/models/course/settings/topics_component.rb', line 16

def pagination
  settings.pagination || 10
end

#pagination=(count) ⇒ Object


20
21
22
# File 'app/models/course/settings/topics_component.rb', line 20

def pagination=(count)
  settings.pagination = count
end

#titleObject


7
8
9
# File 'app/models/course/settings/topics_component.rb', line 7

def title
  settings.title
end

#title=(title) ⇒ Object


11
12
13
14
# File 'app/models/course/settings/topics_component.rb', line 11

def title=(title)
  title = nil if title.blank?
  settings.title = title
end