acts_as_arter_flow_object 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_arter_flow_object}
8
- s.version = "0.2.5"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tim.teng"]
12
- s.date = %q{2010-04-20}
12
+ s.date = %q{2010-04-28}
13
13
  s.description = %q{simple progress indicator for game arters }
14
14
  s.email = %q{tim.rubist@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -6,8 +6,10 @@ module ActsAsAFO
6
6
 
7
7
  module ClassMethods
8
8
 
9
- def acts_as_arter_flow_object
10
- has_one :arter_flow_object, :as => :afoable, :dependent => :destroy
9
+ def acts_as_arter_flow_object options={}
10
+ default_options = { :as => :afoable, :dependent => :destroy }
11
+ default_options.merge!(options) unless options.empty?
12
+ has_one :arter_flow_object, default_options
11
13
  include InstanceMethods
12
14
  end
13
15
 
@@ -45,7 +47,8 @@ module ActsAsAFO
45
47
  private
46
48
 
47
49
  def create_arter_flow_object
48
- arter_flow_object.create
50
+ p self.class
51
+ arter_flow_object.create
49
52
  end
50
53
 
51
54
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 5
9
- version: 0.2.5
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - tim.teng
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-20 00:00:00 +08:00
17
+ date: 2010-04-28 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20