joofaq 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/joofaq/joofaq_generator.rb +7 -0
- data/lib/joofaq/version.rb +1 -1
- metadata +1 -1
@@ -8,9 +8,16 @@ class JoofaqGenerator < Rails::Generators::Base
|
|
8
8
|
copy_file "joofaq/_qapair.html.erb", "app/views/faq/_qapair.html.erb"
|
9
9
|
copy_file "joofaq/_subtitle.html.erb", "app/views/faq/_subtitle.html.erb"
|
10
10
|
create_route
|
11
|
+
add_gem_dependencies
|
11
12
|
end
|
12
13
|
|
14
|
+
private
|
15
|
+
|
13
16
|
def create_route
|
14
17
|
route "match '/faq' => 'Faq#index'"
|
15
18
|
end
|
19
|
+
|
20
|
+
def add_gem_dependencies
|
21
|
+
gem 'rdiscount', version: '1.6.8'
|
22
|
+
end
|
16
23
|
end
|
data/lib/joofaq/version.rb
CHANGED