Sha256: f497289d1b2dd9be531d67b2b626500306cef621fc76638c9fd2bbcf9c0344a5

Contents?: true

Size: 147 Bytes

Versions: 20

Compression:

Stored size: 147 Bytes

Contents

module CommonObjectsHelper
  def common_object_partial_for(object)
    object.to_partial_path.sub(/\A.*\/([^\/]*)\Z/,'common_objects/\1')
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
curate-0.6.6 app/helpers/common_objects_helper.rb
curate-0.6.5 app/helpers/common_objects_helper.rb
curate-0.6.4 app/helpers/common_objects_helper.rb
curate-0.6.3 app/helpers/common_objects_helper.rb
curate-0.6.1 app/helpers/common_objects_helper.rb
curate-0.6.0 app/helpers/common_objects_helper.rb
curate-0.5.6 app/helpers/common_objects_helper.rb
curate-0.5.5 app/helpers/common_objects_helper.rb
curate-0.5.4 app/helpers/common_objects_helper.rb
curate-0.5.2 app/helpers/common_objects_helper.rb
curate-0.5.1 app/helpers/common_objects_helper.rb
curate-0.5.0 app/helpers/common_objects_helper.rb
curate-0.4.2 app/helpers/common_objects_helper.rb
curate-0.3.2 app/helpers/common_objects_helper.rb
curate-0.3.1 app/helpers/common_objects_helper.rb
curate-0.2.0 app/helpers/common_objects_helper.rb
curate-0.1.3 app/helpers/common_objects_helper.rb
curate-0.1.2 app/helpers/common_objects_helper.rb
curate-0.1.1 app/helpers/common_objects_helper.rb
curate-0.1.0 app/helpers/common_objects_helper.rb