Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1360 Bytes
1 | ######################################################################## |
2 | # File:: auditer.rb |
3 | # (C):: Hipposoft 2011 |
4 | # |
5 | # Purpose:: A subclass of Acts As Audited's "Audit" model which provides |
6 | # additional properties required by the 'search, sort and |
7 | # paginate' mechanism in Application Controller. |
8 | # |
9 | # See also "config/initializers/10_define_auditer_sweeper.rb". |
10 | # ---------------------------------------------------------------------- |
11 | # 23-Feb-2011 (ADH): Created. |
12 | ######################################################################## |
13 | |
14 | class Auditer < Audit |
15 | |
16 | # See Jason King's "good_sort" plugin: |
17 | # |
18 | # http://github.com/JasonKing/good_sort/tree/master |
19 | # |
20 | # Must use "table_exists?", as good_sort needs to check the database but |
21 | # this class may be examined by migrations before the table is created. |
22 | |
23 | sort_on :auditable_type, :username, :action, :created_at if Audit.table_exists? |
24 | |
25 | # How many entries to list per index page? See the Will Paginate plugin: |
26 | # |
27 | # http://wiki.github.com/mislav/will_paginate |
28 | |
29 | def self.per_page |
30 | MAXIMUM_LIST_ITEMS_PER_PAGE |
31 | end |
32 | |
33 | # Search columns for views rendering the "shared/_simple_search.html.erb" |
34 | # view partial and using "appctrl_build_search_conditions" to handle queries. |
35 | |
36 | SEARCH_COLUMNS = %w{auditable_type username action changes} |
37 | |
38 | end |