module ActiveRecord::ModelSpaces::ClassMethods
Public Instance Methods
current_table_name()
click to toggle source
# File lib/active_record/model_spaces.rb, line 65 def current_table_name REGISTRY.current_table_name(self) end
hoover()
click to toggle source
# File lib/active_record/model_spaces.rb, line 83 def hoover REGISTRY.hoover(self) end
in_model_space(model_space_name, opts={})
click to toggle source
register a model as belonging to a model space
# File lib/active_record/model_spaces.rb, line 49 def in_model_space(model_space_name, opts={}) REGISTRY.register_model(self, model_space_name, opts) end
new_version(&block)
click to toggle source
create a new version of the model
# File lib/active_record/model_spaces.rb, line 74 def new_version(&block) REGISTRY.new_version(self, &block) end
set_table_name(table_name)
click to toggle source
# File lib/active_record/model_spaces.rb, line 53 def set_table_name(table_name) REGISTRY.set_base_table_name(self, table_name) end
table_name()
click to toggle source
# File lib/active_record/model_spaces.rb, line 61 def table_name ActiveRecord::ModelSpaces::REGISTRY.table_name(self) end
table_name=(table_name)
click to toggle source
# File lib/active_record/model_spaces.rb, line 57 def table_name=(table_name) REGISTRY.set_base_table_name(self, table_name) end
updated_version(&block)
click to toggle source
create an updated version of the model
# File lib/active_record/model_spaces.rb, line 79 def updated_version(&block) REGISTRY.updated_version(self, &block) end
working_table_name()
click to toggle source
# File lib/active_record/model_spaces.rb, line 69 def working_table_name REGISTRY.working_table_name(self) end