Class: Conduit::Core::Action
- Inherits:
-
Object
- Object
- Conduit::Core::Action
- Defined in:
- lib/conduit/core/action.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.inherited(base) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/conduit/core/action.rb', line 25 def self.inherited(base) base.send :include, Conduit::Core::Connection base.send :include, Conduit::Core::Render base.send :include, InstanceMethods base.extend ClassMethods # TODO: Move this to the driver scope # which allows for setting this # "globally" for the driver. # path = caller.first[/^[^:]+/] base.send(:define_method, :action_path) do File.dirname(path) end end |