pebbles_audio_files 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  begin
3
2
  require 'jeweler'
4
3
  Jeweler::Tasks.new do |gemspec|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -3,7 +3,7 @@ class CreateAudioClips < ActiveRecord::Migration
3
3
  def self.up
4
4
  create_table :audio_clips do |t|
5
5
  t.string :audio_file
6
- t.references :audioable, :polymorphic => true
6
+ t.belongs_to :product
7
7
  t.timestamps
8
8
  end
9
9
  end
@@ -2,12 +2,12 @@ module PebblesAudioFiles::Models
2
2
 
3
3
  module AudioClip
4
4
  unloadable
5
-
6
5
  def self.included(base)
7
6
  base.send(:extend, ClassMethods)
8
7
  base.send(:include, InstanceMethods)
9
-
10
- base.belongs_to :audioable, :polymorphic => true
8
+ base.class_eval do
9
+ belongs_to :product
10
+ end
11
11
  end
12
12
 
13
13
  module ClassMethods
@@ -2,11 +2,12 @@ module PebblesAudioFiles::Models
2
2
 
3
3
  module Product
4
4
  unloadable
5
-
6
5
  def self.included(base)
7
6
  base.send(:extend, ClassMethods)
8
7
  base.send(:include, InstanceMethods)
9
- base.has_many :audio_clips, :as => :audioable
8
+ base.class_eval do
9
+ has_many :audio_clips
10
+ end
10
11
  end
11
12
 
12
13
  module ClassMethods
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pebbles_audio_files}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Smith", "Bobby Wilson"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebbles_audio_files
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Smith