lib/beerdb/models/drink.rb in beerdb-0.8.2 vs lib/beerdb/models/drink.rb in beerdb-0.9.0
- old
+ new
@@ -1,13 +1,13 @@
# encoding: UTF-8
-module BeerDb::Models
+module BeerDb::Model
class Drink < ActiveRecord::Base
- belongs_to :beer, class_name: 'BeerDb::Models::Beer'
- belongs_to :user, class_name: 'BeerDb::Models::User'
+ belongs_to :beer, class_name: 'BeerDb::Model::Beer'
+ belongs_to :user, class_name: 'BeerDb::Model::User'
before_save :on_before_save
def on_before_save
# todo/check: can we use blank? for datetime too or just array,strings,etc.
@@ -17,6 +17,6 @@
end
end # class Drink
-end # module BeerDb::Models
\ No newline at end of file
+end # module BeerDb::Model