Class: ActiveRecord::ConnectionAdapters::SQLiteAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- ActiveRecord::ConnectionAdapters::SQLiteAdapter
- Defined in:
- lib/ar-column-as.rb
Instance Method Summary collapse
Instance Method Details
#month_calc(column) ⇒ Object
8 9 10 |
# File 'lib/ar-column-as.rb', line 8 def month_calc(column) "strftime('%m', #{column.to_s})" end |
#year_calc(column) ⇒ Object
4 5 6 |
# File 'lib/ar-column-as.rb', line 4 def year_calc(column) "strftime('%Y', #{column.to_s})" end |