lib/bemer.rb in bemer-0.2.0 vs lib/bemer.rb in bemer-0.3.0
- old
+ new
@@ -30,10 +30,14 @@
autoload :TagBuilder
autoload :Template
autoload :TemplateList
autoload :Tree
+ module Test
+ autoload :ConfigurationHelpers, 'bemer/test/configuration_helpers'
+ end
+
eager_autoload do
autoload :Helpers
autoload :TemplateCatalog
end
@@ -69,10 +73,11 @@
super
Bemer::Builders.eager_load!
end
- # entity_class
+ # entity_class??
+ # Добавить в хелперы
def bem_class(block, element = nil)
return '' if block.blank? || (!element.nil? && element.blank?)
entity_name(block, element)
end