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 CHANGED
@@ -1 +1 @@
1
- 0.1.27
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
@@ -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;
@@ -6,6 +6,6 @@
6
6
  .fieldValue= f.text_field :name
7
7
  .field
8
8
  .fieldName Value:
9
- .fieldValue.text_area= f.text_area :value
9
+ .fieldValue.text_area= f.text_area :value, :id=>'config_value'
10
10
  .field= f.submit "Save", :disable_with=>"Saving..."
11
11
 
@@ -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
+
@@ -13,6 +13,7 @@
13
13
  %li= link_to 'Files', '#field-attachments'
14
14
  %li= link_to 'Stylesheet', '#field-stylesheet'
15
15
  = form_for resource, :remote=>true do |f|
16
+ = f.submit 'Save Changes', :disable_with=>'Please wait...'
16
17
  #field-body
17
18
  .field
18
19
  = f.label :title
data/wheels.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.1.27"
8
+ s.version = "0.1.28"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 27
9
- version: 0.1.27
8
+ - 28
9
+ version: 0.1.28
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon