acts_as_protocolable 0.1.2 → 0.1.3

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,2 +1,35 @@
1
- ./script/generate acts_as_protocolable_migration
1
+ |*Authors:*|Igor Alexandrov (igor.alexandrov@gmail.com)|
2
+ |*Copyright:*|Copyright © 2010 Igor Alexandrov. All rights reserved.|
3
+ |*License:*|MIT License ("opensource.org/licenses/mit-license.php":http://opensource.org/licenses/mit-license.php)|
4
+ |*Website:*|"http://github.com/igor-alexandrov/acts_as_protocolable":http://github.com/igor-alexandrov/acts_as_protocolable|
2
5
 
6
+ h1. When do you need it?
7
+
8
+ If you want to know what is going on with your models in your Rails – you definitely had to use acts_as_protocolable. How to use it? Look over next chapter.
9
+
10
+ h1. How to install and use
11
+
12
+ Install a gem.
13
+
14
+ bc. sudo gem install acts_as_protocolable
15
+
16
+ Generate migration and run it.
17
+
18
+ bc. ./script/generate acts_as_protocolable_migration
19
+ bc. rake db:migrate
20
+
21
+ bc.. # config/environment.rb
22
+ config.gem 'acts_as_protocolable'
23
+
24
+ bc.. # app/controllers/admin/admin_controller.rb_
25
+ class Admin::AdminController < ApplicationController
26
+ before_filter :require_user
27
+ before_filter :set_internal_user_id
28
+
29
+ Use it!
30
+
31
+ bc.. class YourModel < ActiveRecord::Base
32
+ acts_as_protocolable(
33
+ :only => ['create', 'update']
34
+ )
35
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -2,7 +2,7 @@ module ActsAsProtocolable
2
2
  mattr_accessor :internal_user_id
3
3
 
4
4
  module ClassMethods
5
- def acts_as_protocolablable(options = {})
5
+ def acts_as_protocolable(options = {})
6
6
  self.acts_as_protocolable_model(options)
7
7
  end
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_protocolable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Alexandrov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-21 00:00:00 +04:00
18
+ date: 2010-07-22 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency