This repository has been archived by the owner. It is now read-only.
This repository has been archived by the owner. It is now read-only.
Workaround for subfolder controllers #4
Open
Description
ssl_requirement's ssl_required doesn't work for "subfolder controllers", eg class Text::WriteController < ApplicationController ... located at /app/controllers/text.
Instead of using (sample for def index and def create):
ssl_required :index, :create
you can use this as a workaround:
def ssl_required?
return true if %w{index create}.any? {|a| a == params[:action]}
end
Metadata
Metadata
Assignees
Labels
No labels