dust-generators 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/dust/version.rb
CHANGED
@@ -4,8 +4,10 @@ class DustAlbumsGenerator < Rails::Generator::Base
|
|
4
4
|
|
5
5
|
def initialize(runtime_args, runtime_options = {})
|
6
6
|
super
|
7
|
-
|
8
|
-
|
7
|
+
usage if @args.empty?
|
8
|
+
|
9
|
+
@parent = @args.first.downcase.singularize || 'album'
|
10
|
+
@child = @args.last.downcase.singularize || 'photo'
|
9
11
|
end
|
10
12
|
|
11
13
|
def manifest
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<div class="button_bar">
|
7
7
|
<%%= render :partial => 'search' %>
|
8
|
-
<%%=link_to('new
|
8
|
+
<%%=link_to('new <%=parent_singular_name%>', new_<%=parent_singular_name%>_path, :class => 'newfile tip', :title => "New <%=parent_class_name%>")%>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class='<%=child_singular_name%>list'>
|
@@ -1,6 +1,10 @@
|
|
1
1
|
<%% title "All <%=parent_plural_class_name%>" %>
|
2
2
|
<%% heading "All <%=parent_plural_class_name%>" %>
|
3
3
|
|
4
|
+
<%% content_for :head do %>
|
5
|
+
<%%= stylesheet_link_tag 'dust_<%=parent_singular_name%>_app' %>
|
6
|
+
<%% end -%>
|
7
|
+
|
4
8
|
<%%= will_paginate @<%=parent_plural_name%> %>
|
5
9
|
|
6
10
|
<%% @<%=parent_plural_name%>.each do |<%=parent_singular_name%>| %>
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- rossnelson
|
@@ -302,7 +302,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
302
302
|
requirements:
|
303
303
|
- - ">="
|
304
304
|
- !ruby/object:Gem::Version
|
305
|
-
hash:
|
305
|
+
hash: 4316365965115972869
|
306
306
|
segments:
|
307
307
|
- 0
|
308
308
|
version: "0"
|