mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Remove old ruby code
This commit is contained in:
parent
02f4f8c04b
commit
c5bcef3339
2 changed files with 2 additions and 24 deletions
|
@ -49,7 +49,8 @@ module Paloma
|
|||
|
||||
#
|
||||
#
|
||||
# Specify the behavior of Paloma.
|
||||
# Specify the behavior of Paloma. Call this manually to override the
|
||||
# default Paloma controller/action to be executed.
|
||||
#
|
||||
# Can call a different Controller or execute a different action, and
|
||||
# pass parameters.
|
||||
|
|
|
@ -19,29 +19,6 @@ module Paloma
|
|||
end
|
||||
|
||||
|
||||
def attempt_clear_request! options = {:only => {}, :except => {}}
|
||||
return self.clear_request if options.blank?
|
||||
|
||||
clear = true
|
||||
only = options[:only]
|
||||
except = options[:except]
|
||||
|
||||
if only.present?
|
||||
clear = only.include?(self.action.to_s) ||
|
||||
only.include?(self.action.to_sym)
|
||||
end
|
||||
|
||||
if except.present?
|
||||
clear = !(except.include?(self.action.to_s) ||
|
||||
except.include?(self.action.to_sym))
|
||||
end
|
||||
|
||||
return self.clear_request if clear
|
||||
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
def request
|
||||
{:resource => self.resource, :action => self.action, :params => self.params}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue