I have some dataset_module methods defined within a model class.
class Example
dataset_module do
def method_a
where(...) // Standard where filter only using this table
end
def method_b
join(:example_2, ...)
.where(Sequel[:example_2][:some_column] => 'some_value')
end
end
end
If I call `Example.method_a.method_b.all` it returns an array of sort of
modified instances of Example with the joined table's fields as well. Is
there any way to keep the returned model instances as just normal instances
of that model (as if nothing was joined)? I know you can do
`select_all(:example)` within the method_b but if there is a column that is
in both of these tables you cannot for example, call
`Example.method_a.method_b.select(:duplicate_column)`.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/99a709e4-55b4-4508-92a9-e2d7ebc2ec5e%40googlegroups.com.