Sha256: 34c0c726e18f5cf9352e3f83a3ab2220c000a8d65a5b23a974f4060147a9d19d
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
module WizardOfAwes::HelperAuth # Simple auth. When implementing some other form of authorization # this method should return +true+ if everything is great, or redirect user # to some other page, thus denying access to cms admin section. def woa_authorize # If things are good... # true # If things are not good redirect_to(root_path) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wizard_of_awes-0.0.2 | lib/wizard_of_awes/helper_auth.rb |
wizard_of_awes-0.0.1 | lib/wizard_of_awes/helper_auth.rb |