public
Fork of tablatom/hobocentral
Description: Markdown sources for http://hobocentral.net
Homepage: http://hobocentral.net
Clone URL: git://github.com/drnic/hobocentral.git
Search Repo:
Attempt at fixing <pre> formatting issue for ruby snippet
drnic (author)
Mon May 12 17:03:00 -0700 2008
commit  a1207c2fe5f2e71e4f4ae6044a0577166887fbba
tree    2a4d7d87c32e43c02dff49696c2caa7e134d2b3f
parent  9606edb11f48459edd6ea7c0a38ca796b6c5e157
...
282
283
284
285
 
286
287
288
...
282
283
284
 
285
286
287
288
0
@@ -282,7 +282,7 @@
0
 Sometimes however, Hobo can't figure out edit permission unless you tell it explicitly. A common example is `has_many` associations. If you don't specify edit permission for these, Hobo just defaults to not-editable. That's why, up until now, the task assignments are completely absent from the UI. We can fix that by adding this to `task.rb`:
0
   
0
   def users_editable_by?(user)
0
- !user.guest?
0
+ !user.guest?
0
   end
0
 {: .ruby}
0
   

Comments

    No one has commented yet.