zandu 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/tamplates/dbs_controller.rb +16 -0
  2. metadata +2 -1
@@ -0,0 +1,16 @@
1
+ class DbsController < ApplicationController
2
+
3
+ def show
4
+
5
+ @name = params[:id]
6
+ @model_name = @name.capitalize
7
+ @content = eval(@model_name).all
8
+
9
+ respond_to do |format|
10
+ format.html # show.html.erb
11
+ format.json { render json: @content }
12
+ end
13
+
14
+ end
15
+
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zandu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/zandu.rb
21
+ - lib/tamplates/dbs_controller.rb
21
22
  homepage: http://rubygems.org/gems/zandu
22
23
  licenses: []
23
24
  post_install_message: