Sha256: a7f5d40ecf75f01e9fae3a79754de68cacccb60030ebb3211f1687fc2665592f

Contents?: true

Size: 478 Bytes

Versions: 13

Compression:

Stored size: 478 Bytes

Contents

class Haml::Buffer
  
  alias_method :orig_parse_object_ref, :parse_object_ref
  
  # Override the method that figures out id/class given something like:
  # 
  #   %tag[object]
  #
  # An object/class can implement :haml_id_and_class_hash and use that
  # rather than the default.
  def parse_object_ref(ref)
    object, options = ref

    if object.respond_to?(:haml_attributes)
      object.haml_attributes(options)
    else
      orig_parse_object_ref(ref)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.13 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.12 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.11 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.10 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.9 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.8 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.7 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.6 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.5 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.4 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.3 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb
ucb_rails-0.0.2 lib/generators/ucb_rails/templates/config/initializers/local/haml_buffer.rb