1
0
Fork 0
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:
kbparagua 2014-02-15 15:25:48 +08:00
parent 02f4f8c04b
commit c5bcef3339
2 changed files with 2 additions and 24 deletions

View file

@ -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.

View file

@ -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