Sha256: d5a3597138d583e60c369d004c16ea018533dcd12ead2c22971f2976e84b14b8
Contents?: true
Size: 609 Bytes
Versions: 7
Compression:
Stored size: 609 Bytes
Contents
# _scopes.erb module Scopes include <%= parent_class_inspector.parent_mock_name %>::Scopes <% scope_methods.each do |method| -%> def <%= method.name %><%= "(#{method.arguments.parameters})" unless method.arguments.parameters.to_a.empty? %> <%= method.body %> end <% end -%> end extend Scopes class ScopeRelation < ActiveMocker::Association include <%= class_name + mock_append_name %>::Scopes include ClassMethods end def self.__new_relation__(collection) <%= class_name + mock_append_name %>::ScopeRelation.new(collection) end private_class_method :__new_relation__
Version data entries
7 entries across 7 versions & 1 rubygems