Module: Mongoid::ByStar::ClassMethods
- Includes:
- ByStar::Base
- Defined in:
- lib/by_star/orm/mongoid/by_star.rb
Instance Method Summary
collapse
#by_star_field, #by_star_offset
#after, #before, #newest, #oldest
#at_time, #between_dates, #between_times, #by_calendar_month, #by_cweek, #by_day, #by_fortnight, #by_month, #by_quarter, #by_week, #by_weekend, #by_year, #next_day, #next_fortnight, #next_month, #next_week, #next_year, #past_day, #past_fortnight, #past_month, #past_week, #past_year, #today, #tomorrow, #yesterday
Instance Method Details
#by_star_default_field ⇒ Object
23
24
25
|
# File 'lib/by_star/orm/mongoid/by_star.rb', line 23
def by_star_default_field
:created_at
end
|
#by_star_end_field(options = {}) ⇒ Object
15
16
17
|
# File 'lib/by_star/orm/mongoid/by_star.rb', line 15
def by_star_end_field(options = {})
database_field_name original_by_star_end_field(options)
end
|
#by_star_start_field(options = {}) ⇒ Object
19
20
21
|
# File 'lib/by_star/orm/mongoid/by_star.rb', line 19
def by_star_start_field(options = {})
database_field_name original_by_star_start_field(options)
end
|
#original_by_star_end_field ⇒ Object
12
|
# File 'lib/by_star/orm/mongoid/by_star.rb', line 12
alias_method :original_by_star_end_field, :by_star_end_field
|
#original_by_star_start_field ⇒ Object
13
|
# File 'lib/by_star/orm/mongoid/by_star.rb', line 13
alias_method :original_by_star_start_field, :by_star_start_field
|