public
Fork of tablatom/hobo
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/drnic/hobo.git
Search Repo:
Merge branch 'hobo_the_gem' into check_generators
drnic (author)
Sat May 17 02:43:04 -0700 2008
commit  81c773dac0f70f736584187b1ad95be59b23a893
tree    b78d169df2392ebd1b8069e720d56cc15ae26a14
parent  eb584312976c1a68a5c238b147c44942566215b4 parent  f72362fb2e8688e5fdffd7b0b07c510c546f52e5
...
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
...
376
377
378
379
380
381
382
383
...
423
424
425
426
427
428
429
430
431
432
433
...
320
321
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
324
325
...
342
343
344
 
345
346
347
348
...
388
389
390
 
 
391
392
 
393
394
395
0
@@ -320,40 +320,6 @@
0
 
0
 
0
     include Scopes
0
-<<<<<<< HEAD:hobo/lib/hobo/model.rb
0
-
0
- def to_url_path
0
- "#{self.class.to_url_path}/#{to_param}" unless new_record?
0
- end
0
-
0
-
0
- def with_acting_user(user)
0
- old = acting_user
0
- self.acting_user = user
0
- result = yield
0
- self.acting_user = old
0
- result
0
- end
0
-
0
-
0
- def user_changes(user, changes={})
0
- with_acting_user user do
0
- if new_record?
0
- self.attributes = changes
0
- set_creator(user)
0
- Hobo.can_create?(user, self)
0
- else
0
- original = duplicate
0
- # 'duplicate' can cause these to be set, but they can conflict
0
- # with the changes so we clear them
0
- clear_aggregation_cache
0
- clear_association_cache
0
-
0
- self.attributes = changes
0
-
0
- Hobo.can_update?(user, original, self)
0
- end
0
-=======
0
 
0
 
0
     def to_url_path
0
@@ -376,7 +342,6 @@
0
         self.attributes = changes
0
 
0
         Hobo.can_update?(user, original, self)
0
->>>>>>> me/hobo_the_gem:hobo/lib/hobo/model.rb
0
       end
0
     end
0
 
0
0
@@ -423,11 +388,8 @@
0
       send(:attributes_without_hobo_type_conversion=, converted, guard_protected_attributes)
0
     end
0
 
0
-<<<<<<< HEAD:hobo/lib/hobo/model.rb
0
-=======
0
 
0
 
0
->>>>>>> me/hobo_the_gem:hobo/lib/hobo/model.rb
0
     def set_creator(user)
0
       set_creator!(user) unless get_creator
0
     end

Comments

    No one has commented yet.