Module: ActiveSalesforce::ActiveRecord::Mixin

Defined in:
lib/active_record/connection_adapters/asf_active_record.rb

Class Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object

:nodoc:



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/active_record/connection_adapters/asf_active_record.rb', line 23

def self.append_features(base) #:nodoc:
  super
  
  base.class_eval do  
    class << self
      def set_table_name(value = nil, &block)
        super(value, &block)
        
        connection.set_class_for_entity(self, table_name.singularize)
      end        
    end
  end
end