wheels 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/page.rb +1 -1
- data/app/models/sitemap.rb +1 -1
- data/app/views/app_configs/_form.html.haml +1 -1
- data/app/views/app_configs/edit.js.haml +13 -0
- data/app/views/pages/_form.html.haml +1 -0
- data/wheels.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.28
|
data/app/models/page.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class Page < ActiveRecord::Base
|
2
2
|
has_many :attachments
|
3
3
|
has_many :sitemaps, :as=>:resource
|
4
|
-
has_many :access_control_entries, :as=>:resource
|
4
|
+
has_many :access_control_entries, :as=>:resource, :dependent=>:destroy
|
5
5
|
alias_attribute :name, :title
|
6
6
|
acts_as_taggable
|
7
7
|
end
|
data/app/models/sitemap.rb
CHANGED
@@ -5,7 +5,7 @@ class Sitemap < ActiveRecord::Base
|
|
5
5
|
before_destroy :on_before_destroy
|
6
6
|
belongs_to :parent, :class_name=>'Sitemap', :foreign_key=>'parent_id'
|
7
7
|
belongs_to :resource, :polymorphic => true
|
8
|
-
has_many :access_control_entries, :as => :resource
|
8
|
+
has_many :access_control_entries, :as => :resource, :dependent=>:destroy
|
9
9
|
has_many :children, :class_name=>'Sitemap', :foreign_key=>'parent_id', :dependent => :destroy do
|
10
10
|
def sorted
|
11
11
|
sort{|t, u| if t.nil? || t.position.nil?; 1;
|
@@ -1,3 +1,16 @@
|
|
1
1
|
$('##{container}').#{ajax_function}(#{raw render_js('form')});
|
2
2
|
= render :partial => "loadbehind/edit"
|
3
3
|
|
4
|
+
editAreaLoader.init({
|
5
|
+
id: "config_value" // id of the textarea to transform
|
6
|
+
,start_highlight: true
|
7
|
+
,allow_toggle: false
|
8
|
+
,language: "en"
|
9
|
+
,syntax: "html"
|
10
|
+
,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help"
|
11
|
+
,syntax_selection_allow: "css,html,js,ruby"
|
12
|
+
,is_multi_files: false
|
13
|
+
,EA_load_callback: "editAreaLoaded"
|
14
|
+
,show_line_colors: true
|
15
|
+
});
|
16
|
+
|
data/wheels.gemspec
CHANGED