Sha256: d37ee0f91eb1862d0ac13ba7b99ca49e4d5a8fed4e4c00db27657e0512c3c21d

Contents?: true

Size: 231 Bytes

Versions: 5

Compression:

Stored size: 231 Bytes

Contents

module Crowdblog
  class Controller < ActionController::Base
    layout 'crowdblog/crowdblog'
    before_filter :authorize!

    def authorize!
      redirect_to main_app.crowdblog_sign_in_url unless current_user
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
crowdblog-0.0.16 app/controllers/crowdblog/controller.rb
crowdblog-0.0.15 app/controllers/crowdblog/controller.rb
crowdblog-0.0.14 app/controllers/crowdblog/controller.rb
crowdblog-0.0.13 app/controllers/crowdblog/controller.rb
crowdblog-0.0.12 app/controllers/crowdblog/controller.rb