Skip to content

Commit

Permalink
removed set rails version from Gemfile. Now using most recent Rails v…
Browse files Browse the repository at this point in the history
…ersion.

Updated tests to pass after updating rails version.

modified:   Gemfile
modified:   Gemfile.lock
modified:   app/models/audio_recording.rb
modified:   app/models/saved_search.rb
modified:   spec/factories/analysis_job_factory.rb
modified:   spec/factories/analysis_script_factory.rb
modified:   spec/factories/audio_recording_factory.rb
modified:   spec/factories/bookmark_factory.rb
modified:   spec/factories/permission_factory.rb
modified:   spec/factories/project_factory.rb
modified:   spec/factories/saved_search_factory.rb
modified:   spec/factories/tag_factory.rb
  • Loading branch information
Mark Cottman-Fields committed Feb 11, 2013
1 parent 3e924ee commit c256afc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/audio_recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AudioRecording < ActiveRecord::Base
belongs_to :user, :class_name => 'User', :foreign_key => :uploader_id
has_many :analysis_items
has_many :bookmarks
# this is needed to be able to set a user object, rather than the user id
belongs_to :uploader, class_name: 'User', foreign_key: :uploader_id

# attr
attr_accessible :bit_rate_bps, :channels, :data_length_bytes,
Expand Down
2 changes: 2 additions & 0 deletions app/models/saved_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class SavedSearch < ActiveRecord::Base
# relations
has_many :progresses
belongs_to :user, class_name: 'User', foreign_key: :owner_id
# this is needed to be able to set a user object, rather than the user id
belongs_to :owner, class_name: 'User', foreign_key: :owner_id

# attr
attr_accessible :name,
Expand Down

0 comments on commit c256afc

Please sign in to comment.