Include embedded relations

This commit is contained in:
Penn Su 2015-01-21 01:24:08 -08:00
parent 3add178bd2
commit f55770f4d7
1 changed files with 5 additions and 1 deletions

View File

@ -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