Sha256: 344247162a96c6159f6efbbe29178738e895263c97f3f3a7e315767f6ef6e798

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

 module Authentication
   module ClassMethods

   end
   module InstanceMethods
     def self.included(base)
       base.before_filter :require_current_billable
     end
     
     
     def require_current_billable
       if current_billable.nil?
         flash[:error] = "You must be logged in first."
         redirect_to '/'
       end
     end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saasaparilla-0.2.2 lib/saasaparilla/authentication.rb
saasaparilla-0.2.1 lib/saasaparilla/authentication.rb
saasaparilla-0.1.8 lib/saasaparilla/authentication.rb
saasaparilla-0.1.7 lib/saasaparilla/authentication.rb
saasaparilla-0.1.6 lib/saasaparilla/authentication.rb