Module: Thwart::Resource

Includes:
Ables
Included in:
ActiveRecord::Base
Defined in:
lib/thwart/resource.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Ables

#method_missing, #respond_to?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Thwart::Ables

Class Method Details

.included(base) ⇒ Object

Included hooks



5
6
7
# File 'lib/thwart/resource.rb', line 5

def self.included(base) 
  base.extend ClassMethods
end

Instance Method Details

#thwart_nameObject



9
10
11
# File 'lib/thwart/resource.rb', line 9

def thwart_name
  self.class.thwart_name
end