Class: MailManager::BaseController
Instance Method Summary
collapse
Instance Method Details
#site_url ⇒ Object
17
18
19
20
21
|
# File 'app/controllers/mail_manager/base_controller.rb', line 17
def site_url
MailManager.site_url
rescue
"#{default_url_options[:protocol]||'http'}://#{default_url_options[:domain]}"
end
|
#title(value = nil) ⇒ Object
6
7
8
9
|
# File 'app/controllers/mail_manager/base_controller.rb', line 6
def title(value=nil)
@title = value if value.present?
@title
end
|
#use_show_for_resources? ⇒ Boolean
11
12
13
14
15
|
# File 'app/controllers/mail_manager/base_controller.rb', line 11
def use_show_for_resources?
MailManager.use_show_for_resources
rescue
false
end
|