Module: Locomotive::Concerns::Site::AccessPoints

Extended by:
ActiveSupport::Concern
Included in:
Site
Defined in:
app/models/locomotive/concerns/site/access_points.rb

Instance Method Summary collapse

Instance Method Details

#asset_host=(asset_host) ⇒ Object


59
60
61
# File 'app/models/locomotive/concerns/site/access_points.rb', line 59

def asset_host=(asset_host)
  super(asset_host.try(:downcase))
end

#domains=(array) ⇒ Object


54
55
56
57
# File 'app/models/locomotive/concerns/site/access_points.rb', line 54

def domains=(array)
  array.reject!(&:blank?)
  array = [] if array.blank?; super(array.map(&:downcase))
end

#handle=(handle) ⇒ Object


50
51
52
# File 'app/models/locomotive/concerns/site/access_points.rb', line 50

def handle=(handle)
  super(handle.try(:downcase))
end

#main_domainObject


46
47
48
# File 'app/models/locomotive/concerns/site/access_points.rb', line 46

def main_domain
  domains.first
end

#to_paramObject


42
43
44
# File 'app/models/locomotive/concerns/site/access_points.rb', line 42

def to_param
  self.handle.to_s
end