You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: