Class: Pages::ProjectSettings
- Inherits:
-
Object
- Object
- Pages::ProjectSettings
- Defined in:
- app/models/pages/project_settings.rb
Instance Method Summary collapse
- #deployments ⇒ Object
- #force_https? ⇒ Boolean
-
#initialize(project) ⇒ ProjectSettings
constructor
A new instance of ProjectSettings.
- #pages_primary_domain ⇒ Object
- #unique_domain_enabled? ⇒ Boolean
- #url ⇒ Object
Constructor Details
#initialize(project) ⇒ ProjectSettings
Returns a new instance of ProjectSettings.
5 6 7 |
# File 'app/models/pages/project_settings.rb', line 5 def initialize(project) @project = project end |
Instance Method Details
#deployments ⇒ Object
11 |
# File 'app/models/pages/project_settings.rb', line 11 def deployments = project.pages_deployments.active |
#force_https? ⇒ Boolean
15 |
# File 'app/models/pages/project_settings.rb', line 15 def force_https? = project.pages_https_only? |
#pages_primary_domain ⇒ Object
17 |
# File 'app/models/pages/project_settings.rb', line 17 def pages_primary_domain = project.project_setting.pages_primary_domain |
#unique_domain_enabled? ⇒ Boolean
13 |
# File 'app/models/pages/project_settings.rb', line 13 def unique_domain_enabled? = project.project_setting.pages_unique_domain_enabled? |
#url ⇒ Object
9 |
# File 'app/models/pages/project_settings.rb', line 9 def url = project.pages_url |