Module: Utusemi::Core::ActiveRecord::QueryMethods
- Includes:
- Base
- Defined in:
- lib/utusemi/core.rb
Instance Method Summary collapse
- #build_where(opts = :chain, *rest) ⇒ Object
- #order(opts = nil, *rest) ⇒ Object
- #utusemi!(obj = nil, options = {}) ⇒ Object
Methods included from Base
Instance Method Details
#build_where(opts = :chain, *rest) ⇒ Object
153 154 155 156 157 158 159 160 |
# File 'lib/utusemi/core.rb', line 153 def build_where(opts = :chain, *rest) return super unless utusemi_values[:flag] if utusemi_values[:options][:times] opts_with_times(opts, utusemi_values[:options][:times]) { |opts_with_mapped| super(opts_with_mapped, *rest) } else super(opts_with_mapped_column_name(opts), *rest) end end |
#order(opts = nil, *rest) ⇒ Object
162 163 164 165 |
# File 'lib/utusemi/core.rb', line 162 def order(opts = nil, *rest) opts = opts_with_mapped_column_name(opts) if utusemi_values[:flag] super end |
#utusemi!(obj = nil, options = {}) ⇒ Object
149 150 151 |
# File 'lib/utusemi/core.rb', line 149 def utusemi!(obj = nil, = {}) super.tap { warning_checker unless Rails.env.production? } end |