model_mocker 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  require 'rails'
2
2
  require 'model_mocker'
3
3
 
4
- module UrlKeyedObject
4
+ class ModelMocker
5
5
  class Railtie < Rails::Railtie
6
6
  initializer 'model_mocker.active_record_hook', :after => :preload_frameworks do
7
7
  ::ActiveRecord::Base.extend ModelMocker::ActiveRecordHook
data/lib/model_mocker.rb CHANGED
@@ -30,7 +30,7 @@ class ModelMocker
30
30
  module ActiveRecordHook
31
31
  # Create a new instance of the class, pass in creation params and then
32
32
  # yield the ModelMocker instance so that methods can be called on it
33
- def self.mock(params = {})
33
+ def mock(params = {})
34
34
  mock_model = ModelMocker.new(self, params)
35
35
  yield(mock_model) if block_given?
36
36
  mock_model.instance
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 1
9
- version: 1.1.1
8
+ - 2
9
+ version: 1.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Patterson