Sha256: 3e5f28eaea8fc00e18ceca859b5455376b92242f1763a924fc2a202371deeaaa

Contents?: true

Size: 240 Bytes

Versions: 8

Compression:

Stored size: 240 Bytes

Contents

require 'action_view'

ActionView::Template.class_eval do

  # the identifier method name filters out numbers,
  # but we want to preserve them for v1 etc.
  def identifier_method_name #:nodoc:
    inspect.gsub(/[^a-z0-9_]/, '_')
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
versioncake-1.0.0 lib/versioncake/action_view/template.rb
versioncake-0.5.0 lib/versioncake/action_view/template.rb
versioncake-0.4.0 lib/versioncake/action_view/template.rb
versioncake-0.3.2 lib/versioncake/action_view/template.rb
versioncake-0.3.1 lib/versioncake/action_view/template.rb
versioncake-0.3.0 lib/versioncake/action_view/template.rb
versioncake-0.2.0 lib/versioncake/action_view/template.rb
versioncake-0.1.0 lib/versioncake/action_view/template.rb