piggybak_variants 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -21,7 +21,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
21
21
  end
22
22
 
23
23
  APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
- load 'rails/tasks/engine.rake'
25
24
 
26
25
 
27
26
 
@@ -6,6 +6,8 @@ module PiggybakVariants
6
6
  belongs_to :item, :polymorphic => true
7
7
  has_and_belongs_to_many :option_values
8
8
 
9
+ attr_accessible :option_value_ids, :piggybak_sellable_attributes
10
+
9
11
  scope :available, joins(:piggybak_sellable).where("sellables.active IS TRUE AND (sellables.quantity > 0 OR sellables.unlimited_inventory IS TRUE)")
10
12
  validate :option_value_validation
11
13
 
@@ -9,6 +9,6 @@ class CreateOptionValues < ActiveRecord::Migration
9
9
  end
10
10
 
11
11
  def down
12
- drop_table :options_values
12
+ drop_table :option_values
13
13
  end
14
- end
14
+ end
@@ -8,6 +8,6 @@ class CreateOptionConfigurations < ActiveRecord::Migration
8
8
  end
9
9
 
10
10
  def down
11
- drop_table :option_assignments
11
+ drop_table :option_configurations
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module PiggybakVariants
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak_variants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 2175586646055785990
105
+ hash: 2607833046571697989
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: 2175586646055785990
114
+ hash: 2607833046571697989
115
115
  requirements: []
116
116
  rubyforge_project:
117
117
  rubygems_version: 1.8.23