Module: Shortly::Helper::MonkeyPatches::MonkeyHash
- Defined in:
- lib/shortly/helper.rb
Instance Method Summary collapse
Instance Method Details
#authenticable?(*args) ⇒ Boolean
35 36 37 |
# File 'lib/shortly/helper.rb', line 35 def authenticable?(*args) args.all?{|k| self.key?(k)} && !self.values.any?(&:blank?) end |
#to_params ⇒ Object
39 40 41 42 43 |
# File 'lib/shortly/helper.rb', line 39 def to_params collect do |key, value| "#{key}=#{value}" end.sort * '&' end |