Module: Stylish::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/stylish/models.rb
Defined Under Namespace
Modules: AccessorMethods, ClassMethods, Initializers
Class Method Summary collapse
Class Method Details
.find_class_for_group(group) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/stylish/models.rb', line 16 def self.find_class_for_group(group) group = group.to_s case when group == "layouts" Stylish::Layout when group == "components" Stylish::Component when group == "pages" when group == "templates" Stylish::Template when group == "scripts" Stylish::Script when group == "stylesheets" Stylish::Stylesheet end end |