Update ecosystem for new devise
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class Administrator
|
||||
include SimplyStored::Couch
|
||||
include Devise::Orm::SimplyStored
|
||||
devise :database_authenticatable, :rememberable #, :recoverable, :rememberable, :trackable, :registerable
|
||||
|
||||
view :by_email, key: :email
|
||||
|
||||
@@ -3,7 +3,7 @@ class Section
|
||||
include Qwaiter::Distribution
|
||||
|
||||
property :title
|
||||
property :path, type: Array, default: []
|
||||
property :path, type: Array, default: [[0.0, 0.0], [20.0, 30.0]] # default width 20m height 30m
|
||||
|
||||
belongs_to :supplier
|
||||
has_many :tables
|
||||
@@ -46,10 +46,11 @@ class Section
|
||||
self.path[0] ||= [0.0, 0.0]
|
||||
self.path[1] ||= [0.0, 0.0]
|
||||
unless path[1][0] == val
|
||||
self.path[1][0] = val
|
||||
self.path[1][0] = val
|
||||
path_will_change!
|
||||
end
|
||||
end
|
||||
|
||||
def height=(val)
|
||||
val = val.to_f
|
||||
self.path[0] ||= [0.0, 0.0]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Supplier
|
||||
include SimplyStored::Couch
|
||||
include Devise::Orm::SimplyStored
|
||||
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :confirmable
|
||||
property :unconfirmed_email
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class User
|
||||
include SimplyStored::Couch
|
||||
include Devise::Orm::SimplyStored
|
||||
|
||||
property :name
|
||||
property :active_list_id
|
||||
|
||||
Reference in New Issue
Block a user