- adomokos/light-service
- Series of Actions with an emphasis on simplicity.
- collectiveidea/interactor
- Interactor provides a common interface for performing complex interactions in a single request.
- cypriss/mutations
- Compose your business logic into commands that sanitize and validate input.
- orgsync/active_interaction
- Manage application specific business logic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.5 | |
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client | |
RUN mkdir /app | |
WORKDIR /app | |
COPY Gemfile /app/Gemfile | |
COPY Gemfile.lock /app/Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6 | |
RUN apt-get update -qq && apt-get install -y nodejs | |
RUN mkdir /app | |
WORKDIR /app | |
COPY Gemfile /app/Gemfile | |
COPY Gemfile.lock /app/Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
before_action :validate_session | |
def validate_session | |
if session[:user].nil? | |
redirect_to new_session_path if controller_name != 'sessions' | |
else | |
redirect_to home_index_path if controller_name == 'sessions' && action_name != 'destroy' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.codecademy.com/pt-BR/articles/deploy-rails-to-heroku |
NewerOlder