inline_forms 1.3.36 → 1.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/inline_forms CHANGED
@@ -64,7 +64,7 @@ gem 'rails'
64
64
  gem 'rake'
65
65
  gem 'jquery-rails'
66
66
  gem 'capistrano'
67
- gem 'will_paginate' #, :git => 'git://github.com/acesuares/will_paginate.git', :branch => 'rails3'
67
+ gem 'will_paginate' :git => 'git://github.com/acesuares/will_paginate.git'
68
68
  gem 'tabs_on_rails' # , :git => 'git://github.com/acesuares/tabs_on_rails.git', :branch => 'add_remote'
69
69
  gem 'ckeditor', :git => 'git://github.com/acesuares/ckeditor.git', :branch => 'master'
70
70
  gem 'carrierwave'
@@ -187,6 +187,23 @@ end
187
187
  File.open( 'app/helpers/application_helper.rb', 'w') {|f| f.write(app_helper) }
188
188
 
189
189
 
190
+
191
+ puts "Overwriting application_controller...\n"
192
+ app_cont = "
193
+ class ApplicationController < ActionController::Base
194
+ protect_from_forgery
195
+
196
+ # before_filter :authenticate_user!
197
+ # check_authorization :unless => :devise_controller?
198
+
199
+ # rescue_from CanCan::AccessDenied do |exception|
200
+ # sign_out :user if user_signed_in?
201
+ # redirect_to new_user_session_path, :alert => exception.message
202
+ # end
203
+ end
204
+ "
205
+ File.open( 'app/controller/application_controller.rb', 'w+') {|f| f.write(app_cont) }
206
+
190
207
  puts "Injecting precompile assets stuff in production.rb...\n"
191
208
  precomp = "
192
209
  \n
@@ -2,7 +2,7 @@
2
2
  # not needed here, since this is only used in the views InlineForms::SPECIAL_COLUMN_TYPES[:info]=:string
3
3
 
4
4
  def info_show(object, attribute)
5
- object.send(attribute)
5
+ object.send attribute.to_sym
6
6
  end
7
7
 
8
8
  def info_edit(object, attribute)
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.3.36"
3
+ VERSION = "1.3.37"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.36
4
+ version: 1.3.37
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-27 00:00:00.000000000 Z
12
+ date: 2012-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm