aslakjo-comatose 2.0.5.7 → 2.0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/comatose.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # Generated on Tue May 20 20:13:12 -0500 2008
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "aslakjo-comatose"
4
- s.version = "2.0.5.7"
4
+ s.version = "2.0.5.8"
5
5
  s.date = "2008-10-31" # 2008-05-20
6
6
  s.summary = "Micro CMS designed for being embedded into existing Rails applications"
7
7
  s.email = "matt@elucidata.net"
@@ -42,8 +42,9 @@ module Comatose
42
42
  blockable_attr_accessor :authorization
43
43
  blockable_attr_accessor :admin_authorization
44
44
  blockable_attr_accessor :after_page_save
45
- blockable_attr_accessor :controller_before_new
46
- blockable_attr_accessor :controller_before_update
45
+ blockable_attr_accessor :controller_new_after_page_save
46
+ blockable_attr_accessor :controller_edit_after_page_save
47
+ blockable_attr_accessor :controller_edit_show
47
48
  blockable_attr_accessor :admin_get_author
48
49
  blockable_attr_accessor :admin_get_root_page
49
50
  blockable_attr_accessor :after_setup
@@ -25,7 +25,7 @@ class ComatoseAdminController < ActionController::Base
25
25
  @page.author = fetch_author_name
26
26
  if @page.save
27
27
  begin
28
- instance_eval &Comatose.config.controller_before_update
28
+ instance_eval &Comatose.config.controller_edit_after_page_save
29
29
  rescue Exception => e
30
30
  p e
31
31
  end
@@ -35,7 +35,14 @@ class ComatoseAdminController < ActionController::Base
35
35
  flash[:notice] = "Saved changes to '#{@page.title}'"
36
36
  redirect_to :controller=>self.controller_name, :action=>'index'
37
37
  end
38
+ else
39
+ begin
40
+ instance_eval &Comatose.config.controller_edit_show
41
+ rescue Exception => e
42
+ p e
43
+ end
38
44
  end
45
+
39
46
  end
40
47
 
41
48
  # Create a new page (posts back)
@@ -46,7 +53,7 @@ class ComatoseAdminController < ActionController::Base
46
53
  @page.author = fetch_author_name
47
54
  if @page.save
48
55
  begin
49
- instance_eval &Comatose.config.controller_before_new
56
+ instance_eval &Comatose.config.controller_new_after_page_save
50
57
  rescue Exception => e
51
58
  p e
52
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakjo-comatose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5.7
4
+ version: 2.0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - M@ McCray