Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove formtastic_stylesheet_link_tag

  • Loading branch information...
commit cd39b4b53e2c715976de092a5d2fc5ea615db295 1 parent 79080d0
@sobrinho sobrinho authored
View
1  CHANGELOG
@@ -7,6 +7,7 @@
* Renamed Formtastic::SemanticFormBuilder to Formtastic::FormBuilder (SemanticFormBuilder still exists as a subclass, need to handle deprecation notices somehow)
* Massive refactoring of formtastic.rb into around 30 files and modules like StringInput and ButtonsHelper
* Removed chunks of Rails 2 specific code, tests and documentation
+* Removed formtastic_stylesheet_link_tag
1.2.3
View
2  README.textile
@@ -112,7 +112,7 @@ A proof-of-concept stylesheet is provided which you can include in your layout.
<pre>
<head>
...
- <%= formtastic_stylesheet_link_tag %>
+ <%= stylesheet_link_tag 'formtastic', 'formtastic_changes' %>
...
</head>
</pre>
View
2  init.rb
@@ -1,5 +1,3 @@
# encoding: utf-8
require 'formtastic'
-require 'formtastic/helpers/layout_helper'
ActionView::Base.send :include, Formtastic::Helpers::FormHelper
-ActionView::Base.send :include, Formtastic::Helpers::LayoutHelper
View
14 lib/formtastic/helpers/layout_helper.rb
@@ -1,14 +0,0 @@
-# encoding: utf-8
-
-module Formtastic
- module Helpers
- module LayoutHelper
-
- def formtastic_stylesheet_link_tag
- stylesheet_link_tag("formtastic") +
- stylesheet_link_tag("formtastic_changes")
- end
-
- end
- end
-end
View
2  lib/formtastic/railtie.rb
@@ -1,7 +1,6 @@
# encoding: utf-8
require 'formtastic'
-require 'formtastic/helpers/layout_helper'
require 'rails'
module Formtastic
@@ -9,7 +8,6 @@ module Formtastic
class Railtie < Rails::Railtie
initializer 'formtastic.initialize', :after => :after_initialize do
ActionView::Base.send :include, Formtastic::Helpers::FormHelper
- ActionView::Base.send(:include, Formtastic::Helpers::LayoutHelper)
end
end
end
View
21 spec/helpers/layout_helper_spec.rb
@@ -1,21 +0,0 @@
-# encoding: utf-8
-require 'spec_helper'
-
-describe Formtastic::Helpers::LayoutHelper do
-
- include FormtasticSpecHelper
- include Formtastic::Helpers::LayoutHelper
-
- describe '#formtastic_stylesheet_link_tag' do
-
- it 'should render a link to formtastic.css' do
- formtastic_stylesheet_link_tag.should have_tag("link[@href='/stylesheets/formtastic.css']")
- end
-
- it 'should render a link to formtastic_changes.css' do
- formtastic_stylesheet_link_tag.should have_tag("link[@href='/stylesheets/formtastic_changes.css']")
- end
-
- end
-end
-
View
1  spec/spec_helper.rb
@@ -11,7 +11,6 @@
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic/util'))
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic'))
-require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic/helpers/layout_helper'))
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories in alphabetic order.
Please sign in to comment.
Something went wrong with that request. Please try again.