piggybak_giftcerts 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module PiggybakGiftcerts
3
3
  self.table_name = 'giftcerts'
4
4
 
5
5
  has_many :giftcert_applications
6
- belongs_to :order
6
+ belongs_to :order, :class_name => "::Piggybak::Order"
7
7
 
8
8
  attr_accessor :application_detail
9
9
  attr_accessible :code, :amount, :expiration_date, :order_id
@@ -59,6 +59,9 @@ module PiggybakGiftcerts
59
59
  end
60
60
  end
61
61
  field :expiration_date
62
+ field :order do
63
+ label "Purchasing Order"
64
+ end
62
65
  field :application_detail
63
66
  end
64
67
  edit do
@@ -1,3 +1,3 @@
1
1
  module PiggybakGiftcerts
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak_giftcerts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: 4510716757933827629
134
+ hash: -4129374793690141103
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: 4510716757933827629
143
+ hash: -4129374793690141103
144
144
  requirements: []
145
145
  rubyforge_project:
146
146
  rubygems_version: 1.8.23