lib/rasti/db/relations/base.rb in rasti-db-2.3.3 vs lib/rasti/db/relations/base.rb in rasti-db-3.0.0
- old
+ new
@@ -1,10 +1,10 @@
module Rasti
module DB
module Relations
class Base
-
+
include Sequel::Inflections
attr_reader :name, :source_collection_class
def initialize(name, source_collection_class, options={})
@@ -61,13 +61,13 @@
[prefix, name].compact.join('__').to_sym
end
def validate_join!
if source_collection_class.data_source_name != target_collection_class.data_source_name
- raise "Invalid join of multiple data sources: #{source_collection_class.data_source_name}.#{source_collection_class.collection_name} > #{target_collection_class.data_source_name}.#{target_collection_class.collection_name}"
+ raise "Invalid join of multiple data sources: #{source_collection_class.data_source_name}.#{source_collection_class.collection_name} > #{target_collection_class.data_source_name}.#{target_collection_class.collection_name}"
end
end
-
+
end
end
end
end
\ No newline at end of file