Permalink
Browse files

Remove formtastic_stylesheet_link_tag

  • Loading branch information...
1 parent 79080d0 commit cd39b4b53e2c715976de092a5d2fc5ea615db295 @sobrinho sobrinho committed Jan 20, 2011
Showing with 2 additions and 41 deletions.
  1. +1 −0 CHANGELOG
  2. +1 −1 README.textile
  3. +0 −2 init.rb
  4. +0 −14 lib/formtastic/helpers/layout_helper.rb
  5. +0 −2 lib/formtastic/railtie.rb
  6. +0 −21 spec/helpers/layout_helper_spec.rb
  7. +0 −1 spec/spec_helper.rb
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,15 +1,13 @@
# encoding: utf-8
require 'formtastic'
-require 'formtastic/helpers/layout_helper'
require 'rails'
module Formtastic
# @private
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
@@ -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
@@ -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.

0 comments on commit cd39b4b

Please sign in to comment.