Module: HashAuth::Controllers::Helpers::ClassMethods

Defined in:
lib/hash-auth/controllers/helpers.rb

Instance Method Summary collapse

Instance Method Details

#initialize_for_hash_auth(actions_requiring_hash_verification) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/hash-auth/controllers/helpers.rb', line 7

def initialize_for_hash_auth(actions_requiring_hash_verification)
  if actions_requiring_hash_verification = [:all]
    before_filter :verify_hash
  else
    before_filter :verify_hash, :only => actions_requiring_hash_verification
  end
end