Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prepare for Rails 3 release.

  • Loading branch information...
commit da578ccc24f9994918755c878c5b7f790dad21fb 1 parent e7929e8
@josevalim josevalim authored
View
1  init.rb
@@ -0,0 +1 @@
+require 'simple_form'
View
2  lib/generators/simple_form_install/simple_form_install_generator.rb
@@ -1,4 +1,6 @@
class SimpleFormInstallGenerator < Rails::Generators::Base
+ desc "Copy SimpleForm default files"
+
def self.source_root
@_source_root = File.expand_path('../templates', __FILE__)
end
View
10 lib/simple_form.rb
@@ -58,14 +58,4 @@ module SimpleForm
def self.setup
yield self
end
-
- class Railtie < ::Rails::Railtie
- railtie_name :simple_form
-
- initializer "simple_form.initialize_values" do |app|
- config.simple_form.each do |setting, value|
- SimpleForm.send("#{setting}=", value)
- end
- end
- end
end
View
3  simple_form.gemspec
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
"README.rdoc"
]
s.files = [
- "lib/generators/simple_form_install/USAGE",
+ "init.rb",
+ "lib/generators/simple_form_install/USAGE",
"lib/generators/simple_form_install/simple_form_install_generator.rb",
"lib/generators/simple_form_install/templates/_form.html.erb",
"lib/generators/simple_form_install/templates/en.yml",
View
2  test/test_helper.rb
@@ -5,8 +5,6 @@
require 'action_controller'
require 'action_view/test_case'
-require 'rails/railtie'
-
begin
require 'ruby-debug'
rescue LoadError
Please sign in to comment.
Something went wrong with that request. Please try again.