lib/fertile_forest/modules/finders.rb
#
# Find grove informations that has enable (not soft deleted and not grove deleted).
#
# @return [ActiveRecord::Relation] Query for finding grove ids.
# @todo Test.
#
Find grove informations that has enable (not soft deleted and not grove deleted).
Find grove informations that has enable ( not soft deleted and not grove deleted ) .
def groves
            return nil unless has_grove?
            ffid = arel_table[@_ff_id]
            ffgg = arel_table[@_ff_grove]
            ff_usual_conditions_scope()
                .select([ffgg, ffid.count('*').as('ff_count')])
                .group([ffgg])
          end
def groves return nil unless has_grove? ffid = arel_table [ @_ff_id ] ffgg = arel_table [ @_ff_grove ] ff_usual_conditions_scope ( ) . select ( [ ffgg , ffid . count ( '*' ) . as ( 'ff_count' ) ] ) . group ( [ ffgg ] ) end
Find grove informations that has enable (not soft deleted and not grove deleted).
Find grove informations that has enable ( not soft deleted and not grove deleted ) .
Query for finding grove ids.
Query for finding grove ids .
ActiveRecord::Relation
todo
None