Class: AwesomeEngine::Extender

Inherits:
Object
  • Object
show all
Defined in:
lib/awesome_engine/extender.rb

Class Method Summary collapse

Class Method Details

.concern!(base, concern) ⇒ Object



5
6
7
8
9
# File 'lib/awesome_engine/extender.rb', line 5

def concern!(base, concern)
  #base.send(:unloadable) # Dá merda se marcar ActiveRecord::Base como unloadable
  concern.send(:unloadable)
  base.extend_with(concern)
end