sapling 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/sapling/rails.rb
CHANGED
@@ -3,10 +3,6 @@ require 'sapling/rails/view_helpers'
|
|
3
3
|
|
4
4
|
ActiveSupport::Dependencies.autoload_paths << File.expand_path(File.join(File.dirname(__FILE__), "rails", "controllers"))
|
5
5
|
|
6
|
-
ActionController::Routing::Routes.draw do |map|
|
7
|
-
map.sapling_stylesheet 'sapling/stylesheet.css', :controller => 'sapling', :action => 'stylesheet'
|
8
|
-
end
|
9
|
-
|
10
6
|
if defined?(Rails)
|
11
7
|
if Rails.version =~ /^3\./
|
12
8
|
# Haven't tested this
|
@@ -14,4 +10,4 @@ if defined?(Rails)
|
|
14
10
|
else
|
15
11
|
ActionView::Base.send :include, Sapling::ViewHelpers
|
16
12
|
end
|
17
|
-
end
|
13
|
+
end
|
@@ -1,6 +1,7 @@
|
|
1
|
-
class SaplingController < ApplicationController
|
1
|
+
class SaplingController < ApplicationController
|
2
|
+
unloadable
|
2
3
|
def script
|
3
|
-
js = sapling_js_generator.generate(:user => current_user
|
4
|
+
js = sapling_js_generator.generate(:user => current_user)
|
4
5
|
render :text => js, :content_type => 'text/javascript'
|
5
6
|
end
|
6
7
|
end
|
data/lib/sapling/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shane Brinkman-Davis
|