|
|
@ -135,15 +135,6 @@ module Report::Controller |
|
|
|
raise ActiveRecord::RecordNotFound, "No engine found - override #determine_engine" |
|
|
|
raise ActiveRecord::RecordNotFound, "No engine found - override #determine_engine" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
## |
|
|
|
|
|
|
|
# Return the id of the current user, for saving queries. Must be overridden by |
|
|
|
|
|
|
|
# controllers. |
|
|
|
|
|
|
|
def current_user_id |
|
|
|
|
|
|
|
super |
|
|
|
|
|
|
|
rescue NameError |
|
|
|
|
|
|
|
raise NotImplementedError, "#{self.class.name} should have overwritten #current_user_id to return the active user's id" |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## |
|
|
|
## |
|
|
|
# Determines if the request contains filters to set |
|
|
|
# Determines if the request contains filters to set |
|
|
|
def set_filter? #FIXME: rename to set_query? |
|
|
|
def set_filter? #FIXME: rename to set_query? |
|
|
|