Sha256: 416101116c81d891f18fb49e01c45d0e47bc2d9bcf3bfcc2d9652507624e316c

Contents?: true

Size: 212 Bytes

Versions: 10

Compression:

Stored size: 212 Bytes

Contents

module Mtwarden
	class ApplicationController < ::ApplicationController

	def authorize_owner
			unless owner?
				flash[:error] = "You are not allowed to do that."
				redirect_to root_path
			end
		end
	end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mtwarden-4.1.2 app/controllers/mtwarden/application_controller.rb
mtwarden-4.1.1 app/controllers/mtwarden/application_controller.rb
mtwarden-4.1.0 app/controllers/mtwarden/application_controller.rb
mtwarden-4.0.0 app/controllers/mtwarden/application_controller.rb
mtwarden-3.6.2 app/controllers/mtwarden/application_controller.rb
mtwarden-2.2.7 app/controllers/mtwarden/application_controller.rb
mtwarden-2.2.6 app/controllers/mtwarden/application_controller.rb
mtwarden-2.2.5 app/controllers/mtwarden/application_controller.rb
mtwarden-2.2.0 app/controllers/mtwarden/application_controller.rb
mtwarden-2.1.0 app/controllers/mtwarden/application_controller.rb