Class: Simplec::Subdomain
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Simplec::Subdomain
- Includes:
- Normalizers
- Defined in:
- app/models/simplec/subdomain.rb
Defined Under Namespace
Modules: Normalizers
Instance Method Summary collapse
Methods included from Normalizers
Instance Method Details
#layouts ⇒ Object
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 |