Class: AwesomeEngine::Extension
- Inherits:
-
Object
- Object
- AwesomeEngine::Extension
- Defined in:
- lib/awesome_engine/extension.rb
Class Method Summary collapse
Class Method Details
.concern! ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/awesome_engine/extension.rb', line 10 def concern! constants.map(&:to_s).each do |const_name| next unless is_concern?(const_name) concerned_class = safe_constantize(concern_target(const_name).camelize) unless concerned_class.nil? concerned_class.send(:unloadable) concerned_class.extend_with(const_get(const_name)) end end end |
.inherited(base) ⇒ Object
6 7 8 |
# File 'lib/awesome_engine/extension.rb', line 6 def inherited(base) base.send(:unloadable) end |