Created
October 30, 2018 14:38
-
-
Save lucasmedeirosleite/263c6df7c53147d6873edfe2cc0d95d3 to your computer and use it in GitHub Desktop.
Service module
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
module Service | |
extend ActiveSupport::Concern | |
included do | |
def self.call(*args) | |
new.call(*args) | |
end | |
def call | |
raise '#call method not implemented' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment