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.
- data/README.textile +34 -1
- data/VERSION +1 -1
- data/lib/acts_as_protocolable.rb +1 -1
- metadata +4 -4
data/README.textile
CHANGED
@@ -1,2 +1,35 @@
|
|
1
|
-
|
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.
|
1
|
+
0.1.3
|
data/lib/acts_as_protocolable.rb
CHANGED
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
18
|
+
date: 2010-07-22 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|