This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module HomeNameDynamicFilter | |
| extend ActiveSupport::Concern | |
| # Adds a dynamic filter for filtering by home names | |
| # | |
| # @param association_path [Symbol, Hash, nil] The association path from the resource's model to Home | |
| # - nil (default): Assumes the model has a direct :home association or home_id column | |
| # - Symbol: Direct association name (e.g., :home, :property) | |
| # - Hash: Nested associations (e.g., { reservation: :home }, { contract: { home_ownership: :home } }) | |
| # |