typus 3.0.11.rc2 → 3.0.11.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,19 +15,19 @@
15
15
 
16
16
  ## Links
17
17
 
18
- - [Documentation](https://github.com/fesplugas/typus/wiki)
19
- - [Issues](https://github.com/fesplugas/typus/issues)
18
+ - [Documentation](https://github.com/typus/typus/wiki)
19
+ - [Issues](https://github.com/typus/typus/issues)
20
20
  - [Demo](http://demo.typuscms.com/) ([Code][code])
21
- - [Source Code](http://github.com/fesplugas/typus)
21
+ - [Source Code](http://github.com/typus/typus)
22
22
  - [Mailing List](http://groups.google.com/group/typus)
23
23
  - [Gems](http://rubygems.org/gems/typus)
24
- - [Contributors List](http://github.com/fesplugas/typus/contributors)
24
+ - [Contributors List](http://github.com/typus/typus/contributors)
25
25
 
26
26
  ## Installing
27
27
 
28
28
  Add **Typus** to your `Gemfile`
29
29
 
30
- gem 'typus', :git => 'git://github.com/fesplugas/typus.git'
30
+ gem 'typus', :git => 'git://github.com/typus/typus.git'
31
31
 
32
32
  Update your bundle, run the generator and start the application server:
33
33
 
@@ -43,5 +43,5 @@ Typus is released under the MIT license.
43
43
 
44
44
  [paperclip]: http://rubygems.org/gems/paperclip
45
45
  [dragonfly]: http://rubygems.org/gems/dragonfly
46
- [code]: https://github.com/fesplugas/typus/tree/master/test/fixtures/rails_app
47
- [locales]: https://github.com/fesplugas/typus/tree/master/config/locales
46
+ [code]: https://github.com/typus/typus/tree/master/test/fixtures/rails_app
47
+ [locales]: https://github.com/typus/typus/tree/master/config/locales
@@ -131,6 +131,11 @@ class Admin::ResourcesController < Admin::BaseController
131
131
  @object_name = ActiveModel::Naming.singular(@resource)
132
132
  end
133
133
 
134
+ def resource
135
+ params[:controller].extract_class
136
+ end
137
+ helper_method :resource
138
+
134
139
  def set_context
135
140
  @resource
136
141
  end
@@ -15,7 +15,7 @@
15
15
  <%= render 'index' %>
16
16
 
17
17
  <ul class="predefined_filters">
18
- <li><%= link_to Typus::I18n.t("All"), :action => 'index' %> (<%= set_context.count %>)</li>
18
+ <li><%= link_to Typus::I18n.t("All"), :action => 'index' %> (<%= resource.count %>)</li>
19
19
  <% predefined_filters.each do |filter, action, scope| %>
20
20
  <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %>
21
21
  <li><%= link_to Typus::I18n.t(filter), url %> <%= "(#{@resource.send(scope).count})" if scope && @resource.respond_to?(scope) %></li>
@@ -1,3 +1,3 @@
1
1
  module Typus
2
- VERSION = "3.0.11.rc2"
2
+ VERSION = "3.0.11.rc3"
3
3
  end
@@ -6,6 +6,6 @@
6
6
 
7
7
  <p>In some models appears an explanation of the customization added like for example: filters, search, sidebars ...</p>
8
8
 
9
- <p>Code for this application is available at <a href="https://github.com/fesplugas/typus/tree/master/test/fixtures/rails_app">GitHub</a>.</p>
9
+ <p>Code for this application is available at <a href="https://github.com/typus/typus/tree/master/test/fixtures/rails_app">GitHub</a>.</p>
10
10
 
11
11
  <p>If you need help don't hesitate in joining the <%= link_to 'mailing list', 'http://groups.google.com/group/typus' %> or use the <%= link_to "help", "/admin/help" %>.</p>
@@ -5,7 +5,7 @@ set :deploy_to, "/home/#{user}/public_html/#{application}"
5
5
 
6
6
  set :scm, :git
7
7
  set :default_run_options, { :pty => true }
8
- set :repository, "git://github.com/fesplugas/typus.git"
8
+ set :repository, "git://github.com/typus/typus.git"
9
9
  set :deploy_via, :remote_cache
10
10
  set :keep_releases, 2
11
11
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: typus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 7
5
- version: 3.0.11.rc2
5
+ version: 3.0.11.rc3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Francesc Esplugas
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-08 00:00:00 Z
13
+ date: 2011-06-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt-ruby