ecm_downloads 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,10 +69,10 @@ class Ecm::Downloads::Download < ActiveRecord::Base
69
69
 
70
70
  # public methods
71
71
 
72
- def heading_name
73
- locale_prefix = (locale.blank?) ? "" : "[#{locale}] "
74
- "#{locale_prefix}#{name}"
75
- end
72
+ # def heading_name
73
+ # locale_prefix = (locale.blank?) ? "" : "[#{locale}] "
74
+ # "#{locale_prefix}#{name}"
75
+ # end
76
76
 
77
77
  def to_s
78
78
  name
@@ -1,5 +1,5 @@
1
1
  <div class="download" id="download-<%= download.id %>">
2
- <h2><%= download.heading_name %></h2>
2
+ <h2><span class="download-locale"><%= download.locale %></span><span class="download-name"><%= download.name %></span></h2>
3
3
  <ul>
4
4
  <li class="download-asset_file_name"><%= Ecm::Downloads::Download.human_attribute_name(:asset_file_name) %>: <%= download.asset_file_name %></li>
5
5
  <li class="download-asset_file_size"><%= Ecm::Downloads::Download.human_attribute_name(:asset_file_size) %>: <%= number_to_human_size(download.asset_file_size) %></li>
@@ -1,8 +1,6 @@
1
1
  module Ecm
2
2
  module Downloads
3
- class Engine < Rails::Engine
4
- # endpoint
5
-
3
+ class Engine < Rails::Engine
6
4
  # active admin
7
5
  initializer :ecm_courses_engine do
8
6
  ::ActiveAdmin.setup do |active_admin_config|
@@ -10,9 +8,6 @@ module Ecm
10
8
  end
11
9
  end if defined?(::ActiveAdmin)
12
10
 
13
- # controllers
14
- # paths["app/controllers"] << File.dirname(__FILE__) + '/../../../app/controllers'
15
-
16
11
  # helpers
17
12
  config.to_prepare do
18
13
  ApplicationController.helper(Ecm::Downloads::DownloadCategoryHelper)
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Downloads
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ecm_downloads
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Roberto Vasquez Angel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-07-19 00:00:00 Z
13
+ date: 2012-07-26 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails