Class: Marty::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Marty::Base
- Defined in:
- app/models/marty/base.rb
Direct Known Subclasses
ApiAuth, ApiConfig, BaseRule, Config, DataGrid, EnumEventOperation, Event, GridIndexBoolean, GridIndexInt4range, GridIndexInteger, GridIndexNumrange, GridIndexString, ImportType, Log, Posting, PostingType, Promise, Role, Script, Tag, Token, User, UserRole
Constant Summary collapse
- MCFLY_PT_SIG =
[1, 1]
- COUNT_SIG =
FIXME: hacky signatures for AR queries
[0, 0]
- DISTINCT_SIG =
[0, 100]
- FIRST_SIG =
[0, 1]
- GROUP_SIG =
[1, 100]
- JOINS_SIG =
[1, 100]
- LAST_SIG =
[0, 1]
- LIMIT_SIG =
[1, 1]
- NOT_SIG =
[1, 100]
- ORDER_SIG =
[1, 100]
- PLUCK_SIG =
[1, 100]
- SELECT_SIG =
[1, 100]
- WHERE_SIG =
[0, 100]
Class Method Summary collapse
Methods inherited from ActiveRecord::Base
Class Method Details
.mcfly_pt(pt) ⇒ Object
5 6 7 8 |
# File 'app/models/marty/base.rb', line 5 def self.mcfly_pt(pt) tb = self.table_name self.where("#{tb}.obsoleted_dt >= ? AND #{tb}.created_dt < ?", pt, pt) end |