Add devise gem and panel/users controller
This commit is contained in:
1 parent
e87b3c1d61
commit
13065aa85a
23 files changed
+331
-4
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ class Item
|
||||
|
||||
def setup_default_value
|
||||
if self.position.blank?
|
||||
max_page = Page.find(:last, :order => 'position')
|
||||
max_page = Page.last(:order => 'position')
|
||||
self.position = (max_page)? max_page.position.to_i + 1 : 1
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
class User
|
||||
include MongoMapper::Document
|
||||
|
||||
devise :authenticatable, :recoverable, :rememberable, :trackable
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user