Skip to content

Usage of prepositions in scope names #1

@aluuu

Description

@aluuu

Hi,

As I see, there are some date and time related scopes like these ones:

created_on_day(t)
created_on_month(t)
created_on_year(t)
...
created_on_or_before(t)
created_on_or_before_day(t)
created_on_or_before_month(t)
created_on_or_before_year(t)
created_on_or_after(t)
created_on_or_after_day(t)
created_on_or_after_month(t)
created_on_or_after_year(t)

Problem with scope names is that preposition "on" should be used with days and dates only. The better way to name these scopes, IMO would be:

created_on_day(t)
created_in_month(t)
created_in_year(t)
...
created_at_or_before(t)
created_on_or_before_day(t)
created_in_or_before_month(t)
created_in_or_before_year(t)
created_at_or_after(t)
created_on_or_after_day(t)
created_in_or_after_month(t)
created_in_or_after_year(t)

Anyway, it'd be better to ask native speaker to review scope names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions