Module: ReputationSystem::QueryMethods::ClassMethods
- Defined in:
- lib/reputation_system/query_methods.rb
Instance Method Summary collapse
- #with_normalized_reputation(*args) ⇒ Object
- #with_normalized_reputation_only(*args) ⇒ Object
- #with_reputation(*args) ⇒ Object
- #with_reputation_only(*args) ⇒ Object
Instance Method Details
#with_normalized_reputation(*args) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/reputation_system/query_methods.rb', line 40 def with_normalized_reputation(*args) warn "[DEPRECATION] `with_normalized_reputation` will be deprecated in version 3.0.0. Please use finder methods instead." reputation_name, srn = parse_arel_query_args(args) select = build_select_statement(table_name, reputation_name, nil, srn, true) joins = build_join_statement(table_name, name, srn) self.select(select).joins(joins) end |
#with_normalized_reputation_only(*args) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/reputation_system/query_methods.rb', line 48 def with_normalized_reputation_only(*args) warn "[DEPRECATION] `with_normalized_reputation_only` will be deprecated in version 3.0.0. Please use finder methods instead." reputation_name, srn = parse_arel_query_args(args) select = build_select_statement_with_reputation_only(table_name, reputation_name, srn, true) joins = build_join_statement(table_name, name, srn) self.select(select).joins(joins) end |
#with_reputation(*args) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/reputation_system/query_methods.rb', line 24 def with_reputation(*args) warn "[DEPRECATION] `with_reputation` will be deprecated in version 3.0.0. Please use finder methods instead." reputation_name, srn = parse_arel_query_args(args) select = build_select_statement(table_name, reputation_name) joins = build_join_statement(table_name, name, srn) self.select(select).joins(joins) end |
#with_reputation_only(*args) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/reputation_system/query_methods.rb', line 32 def with_reputation_only(*args) warn "[DEPRECATION] `with_reputation_only` will be deprecated in version 3.0.0. Please use finder methods instead." reputation_name, srn = parse_arel_query_args(args) select = build_select_statement_with_reputation_only(table_name, reputation_name) joins = build_join_statement(table_name, name, srn) self.select(select).joins(joins) end |