12 lines
241 B
Ruby
12 lines
241 B
Ruby
module Locomotive::SitesHelper
|
|
|
|
def error_on_domain(site, name)
|
|
if (error = (site.errors[:domains] || []).detect { |n| n.include?(name) })
|
|
content_tag(:span, error, :class => 'inline-errors')
|
|
else
|
|
''
|
|
end
|
|
end
|
|
|
|
end
|