app/models/locomotive/extensions/site/subdomain_domains.rb in locomotive_cms-2.0.0.rc2 vs app/models/locomotive/extensions/site/subdomain_domains.rb in locomotive_cms-2.0.0.rc4
- old
+ new
@@ -36,9 +36,10 @@
end
module InstanceMethods
def domains=(array)
+ array.reject!(&:blank?)
array = [] if array.blank?; super(array)
end
def add_subdomain_to_domains
self.domains ||= []
\ No newline at end of file