Sha256: 69f43a043264fdaad60892cc4c603550f75d5fb233b25008dc127a075c5a88cd

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

module ActiveMetadata
  module ApplicationHelper

    def stream_partial_path element
      class_name_downcase = clean_class_name element.class.to_s.downcase
      "active_metadata/#{class_name_downcase.pluralize}/#{class_name_downcase}"
    end

    def clean_class_name name
      name.split('::').last || nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_metadata-0.6.4 app/helpers/active_metadata/application_helper.rb