Module: TimestampScopes

Defined in:
lib/timestamp_scopes.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

TYPES =
["timestamp", "datetime", "date"].freeze

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



4
5
6
7
# File 'lib/timestamp_scopes.rb', line 4

def self.included(model)
  model.extend(ClassMethods)
  model.create_timestamp_scopes
end