thin_man 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 686c4bc3d564f6254c7ff91729a3fb3f309421eb
4
- data.tar.gz: 72e6b93a39f0f2c6edd23c03c547359a15ca6241
3
+ metadata.gz: 0fa4507ad28ab3bfc4a048e514966583d9c58bc4
4
+ data.tar.gz: 6143b344b977c116fddfd09f0705d5041b5a178c
5
5
  SHA512:
6
- metadata.gz: e3fb89ad519ff717aa47588c837117e922c84d4142f0376a82b9f02acd48ac95abc39fb2220759793435878ae3a0115d5c45a0713d65bf1317791740e141072f
7
- data.tar.gz: de7eb4294fa77bfe77ca1686fb82271a1148c76607e33ccf23b173c3966a2ab7b2e59fed5d9446e06ec6e74f97894e19e39811eb1a999dfc29c16321bce2f043
6
+ metadata.gz: f66085fedc58a1f38dddb77f6c608e39f32b843f08d343d45095a0133262d3d51e855b7136b9914995a9393326efa940c569d362bfc8ee32706d8c427611c4b7
7
+ data.tar.gz: 8f217224aef905b680f71d22e864cb3b9c580636804cd098524c0ab67eb7bd13c91eb188cfcf4dd13d3d9c4edee0514f2f1b786285befa595d883884cc126657
@@ -0,0 +1,7 @@
1
+ module ThinMan
2
+ module AjaxResponder
3
+ def render_ajax(options)
4
+ render({partial: action_name}.merge(options))
5
+ end
6
+ end
7
+ end
@@ -1,8 +1,12 @@
1
1
  require 'thin_man/ajax_helper'
2
+ require 'thin_man/ajax_responder'
2
3
  module ThinMan
3
4
  class Railtie < Rails::Railtie
4
5
  initializer "thin_man.ajax_helper" do
5
6
  ActionView::Base.send :include, AjaxHelper
6
7
  end
8
+ initializer "thin_man.ajax_responder" do
9
+ ActionController::Base.send :include, AjaxResponder
10
+ end
7
11
  end
8
12
  end
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,7 @@ files:
52
52
  - lib/tasks/thin_man_tasks.rake
53
53
  - lib/thin_man.rb
54
54
  - lib/thin_man/ajax_helper.rb
55
+ - lib/thin_man/ajax_responder.rb
55
56
  - lib/thin_man/railtie.rb
56
57
  - lib/thin_man/version.rb
57
58
  - test/dummy/README.rdoc