No description or website provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features Fixing travis build Aug 20, 2013
gemfiles Working with Rails 4.0 Aug 20, 2013
lib Version bump due to Rails 4.x support Aug 20, 2013
.gitignore Working for Rails 3.2 Aug 1, 2012
.travis.yml Fixing travis build Aug 20, 2013
Appraisals Working with Rails 4.0 Aug 20, 2013
Gemfile Initial commit: from 'bundle gem utf8_enforcer_workaround' Jul 4, 2012
LICENSE.txt
README.md fixing badge url Aug 20, 2013
Rakefile Working for Rails 3.2 Aug 1, 2012
utf8_enforcer_workaround.gemspec Working with Rails 4.0 Aug 20, 2013

README.md

Utf8EnforcerWorkaround

Build Status Dependency Status Code Climate

Make utf8 enforcer tag to be applied only for non-standards-complying browsers.

Requirements

utf8_enforcer_workaround depends on Rails and browser

Supported Rails versions

  • Rails 3.x
  • Rails 4.x

Installation

Add this line to your application's Gemfile:

gem 'utf8_enforcer_workaround'

And then execute:

$ bundle

Or install it yourself as:

$ gem install utf8_enforcer_workaround

Usage

Add this line of code in your ApplicationController:

utf8_enforcer_workaround

Alternatively you can write your own logic in your ApplicationController to decide whether or not to include the utf8 enforcer tag. Here is an example showing the default logic:

before_filter do
  @utf8_enforcer_tag_enabled = browser.ie?
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2013 Jarl Friis. See LICENSE.txt for further details.