Include embedded relations
This commit is contained in:
parent
3add178bd2
commit
f55770f4d7
|
@ -73,7 +73,7 @@ module Ransack
|
|||
end
|
||||
|
||||
def reflect_on_all_associations_all
|
||||
reflect_on_all_associations(:belongs_to, :has_one, :has_many)
|
||||
reflect_on_all_associations(:belongs_to, :has_one, :has_many, :embeds_many, :embedded_in)
|
||||
end
|
||||
|
||||
# For overriding with a whitelist of symbols
|
||||
|
@ -87,6 +87,10 @@ module Ransack
|
|||
[]
|
||||
end
|
||||
|
||||
def custom_join_ast *args
|
||||
[]
|
||||
end
|
||||
|
||||
def first(*args)
|
||||
if args.size == 0
|
||||
super
|
||||
|
|
Loading…
Reference in New Issue