Merge pull request #1063 from bf4/poro_lint

Lead by example: lint PORO model
This commit is contained in:
João Moura
2015-08-20 03:53:11 -03:00
3 changed files with 23 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ module ActiveModel::Serializer::Lint
private
def resource
@resource
@resource or fail "'@resource' must be set as the linted object"
end
def assert_instance_of(result, name)