Class: ModelStubs::ModelStub

Inherits:
ActiveRecord::Base show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb

Class Method Summary collapse

Methods inherited from ActiveRecord::Base

#associated_valid?, #no_errors_in_associated?, #save_associated, #save_associated!, #save_with_unsaved_flag, #to_label, #unsaved=, #unsaved?

Class Method Details

.columnsObject



6
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 6

def self.columns; [ActiveRecord::ConnectionAdapters::Column.new('foo', '')] end

.table_nameObject



7
8
9
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 7

def self.table_name
  to_s.split('::').last.underscore.pluralize
end