Method: Article.templates_for_select

Defined in:
app/models/article.rb

.templates_for_selectObject



485
486
487
# File 'app/models/article.rb', line 485

def self.templates_for_select
  Dir.glob(File.join(::Rails.root, "app", "views", "layouts", "*.html.erb")).map{|a| File.basename(a, ".html.erb")}.delete_if{|a| a =~ /^_/ }
end