Class: Simplec::Subdomain

Inherits:
ApplicationRecord show all
Defined in:
app/models/simplec/subdomain.rb

Defined Under Namespace

Modules: Normalizers

Instance Method Summary collapse

Instance Method Details

#layoutsObject


13
14
15
16
17
18
# File 'app/models/simplec/subdomain.rb', line 13

def layouts
	@layouts ||= Dir[Rails.root.join('app/views/layouts').to_s + "/*.html.*"].
		map{|n| File.basename(n).split('.', 2).first }.
		reject{|n| n =~ /\A_/ || n =~ /mailer/ || n =~ /application/ || n =~ /sessions/}.
		sort
end