File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ window.App =
35
35
faye_server_url : ' '
36
36
asset_url : ' '
37
37
root_url : ' '
38
-
38
+
39
39
isLogined : ->
40
40
App .current_user_id != null
41
41
@@ -66,7 +66,7 @@ window.App =
66
66
if ! App .isLogined ()
67
67
location .href = " /account/sign_in"
68
68
return false
69
-
69
+
70
70
$el = $ (el)
71
71
likeable_type = $el .data (" type" )
72
72
likeable_id = $el .data (" id" )
@@ -154,7 +154,6 @@ window.App =
154
154
$ (document ).attr (" title" , new_title)
155
155
true
156
156
157
-
158
157
init : () ->
159
158
App .initForDesktopView ()
160
159
FormStorage .restore ()
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class Site
11
11
field :desc
12
12
13
13
belongs_to :site_node
14
- counter_cache :name => :site_node , :inverse_of => :sites
15
14
belongs_to :user
16
15
17
16
validates_presence_of :url , :name , :site_node_id
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ class SiteNode
4
4
include Mongoid ::BaseModel
5
5
6
6
field :name
7
- field :sites_count , :type => Integer
8
- field :sort , :type => Integer , :default => 0
7
+ field :sort , type : Integer , default : 0
9
8
has_many :sites
10
9
11
10
validates_presence_of :name
You can’t perform that action at this time.
0 commit comments