This file contains hidden or 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
ErrorsRepresenter.new(@operation.errors).to_json |
This file contains hidden or 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
# --------------------------------------------------------------------------- | |
# This is the Dockerfile to build the base image for ruby/rails/mysql | |
# --------------------------------------------------------------------------- | |
FROM debian:jessie | |
MAINTAINER XXX | |
ENV REFRESHED_AT 2015-08-07 | |
# --------------------------------------------------------------------------- |
This file contains hidden or 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
module Validatable | |
extend ActiveSupport::Concern | |
# Required dependency for ActiveModel::Errors | |
extend ActiveModel::Naming | |
def validate! | |
raise NotImplementedError, 'You need to implement this in the parent class' | |
end | |