ems 0.1.8 → 0.1.9
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.
- data/lib/ems/engine.rb +5 -4
- data/lib/ems/version.rb +1 -1
- metadata +3 -4
- data/app/controllers/ems/images_controller.rb +0 -86
data/lib/ems/engine.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
+
require "ems/version"
|
2
|
+
|
1
3
|
module Ems
|
2
4
|
class Engine < ::Rails::Engine
|
3
5
|
isolate_namespace Ems
|
4
6
|
# Add a load path for this specific Engine
|
5
7
|
config.autoload_paths << File.expand_path("#{Engine.root}/lib/query_builder/", __FILE__)
|
6
8
|
config.autoload_paths << File.expand_path("#{Engine.root}/lib/kramdown", __FILE__)
|
7
|
-
config.generators do |g|
|
8
|
-
g.template_engine :haml
|
9
|
-
end
|
10
|
-
|
9
|
+
config.generators do |g|
|
10
|
+
g.template_engine :haml
|
11
|
+
end
|
11
12
|
end
|
12
13
|
end
|
data/lib/ems/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -344,7 +344,6 @@ files:
|
|
344
344
|
- app/controllers/ems/categories_controller.rb
|
345
345
|
- app/controllers/ems/channels_controller.rb
|
346
346
|
- app/controllers/ems/ems_controller.rb
|
347
|
-
- app/controllers/ems/images_controller.rb
|
348
347
|
- app/controllers/ems/news_controller.rb
|
349
348
|
- app/controllers/ems/reports_controller.rb
|
350
349
|
- app/controllers/ems/tags_controller.rb
|
@@ -553,7 +552,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
553
552
|
version: '0'
|
554
553
|
segments:
|
555
554
|
- 0
|
556
|
-
hash:
|
555
|
+
hash: 2711690507524164964
|
557
556
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
558
557
|
none: false
|
559
558
|
requirements:
|
@@ -562,7 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
562
561
|
version: '0'
|
563
562
|
segments:
|
564
563
|
- 0
|
565
|
-
hash:
|
564
|
+
hash: 2711690507524164964
|
566
565
|
requirements: []
|
567
566
|
rubyforge_project:
|
568
567
|
rubygems_version: 1.8.24
|
@@ -1,86 +0,0 @@
|
|
1
|
-
module Ems
|
2
|
-
class ImagesController < ApplicationController
|
3
|
-
load_and_authorize_resource :class => Ems::Image
|
4
|
-
# GET /images
|
5
|
-
# GET /images.json
|
6
|
-
def index
|
7
|
-
@images = Image.all
|
8
|
-
|
9
|
-
respond_to do |format|
|
10
|
-
format.html # index.html.erb
|
11
|
-
format.json { render json: @images }
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
# GET /images/1
|
16
|
-
# GET /images/1.json
|
17
|
-
def show
|
18
|
-
@image = Image.find(params[:id])
|
19
|
-
|
20
|
-
respond_to do |format|
|
21
|
-
format.html # show.html.erb
|
22
|
-
format.json { render json: @image }
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
# GET /images/new
|
27
|
-
# GET /images/new.json
|
28
|
-
def new
|
29
|
-
@image = Image.new
|
30
|
-
|
31
|
-
respond_to do |format|
|
32
|
-
format.html # new.html.erb
|
33
|
-
format.json { render json: @image }
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# GET /images/1/edit
|
38
|
-
def edit
|
39
|
-
@image = Image.find(params[:id])
|
40
|
-
end
|
41
|
-
|
42
|
-
# POST /images
|
43
|
-
# POST /images.json
|
44
|
-
def create
|
45
|
-
@image = Image.new(params[:image])
|
46
|
-
|
47
|
-
respond_to do |format|
|
48
|
-
if @image.save
|
49
|
-
format.html { redirect_to @image, notice: 'Image was successfully created.' }
|
50
|
-
format.json { render json: @image, status: :created, location: @image }
|
51
|
-
else
|
52
|
-
format.html { render action: "new" }
|
53
|
-
format.json { render json: @image.errors, status: :unprocessable_entity }
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# PUT /images/1
|
59
|
-
# PUT /images/1.json
|
60
|
-
def update
|
61
|
-
@image = Image.find(params[:id])
|
62
|
-
|
63
|
-
respond_to do |format|
|
64
|
-
if @image.update_attributes(params[:image])
|
65
|
-
format.html { redirect_to @image, notice: 'Image was successfully updated.' }
|
66
|
-
format.json { head :no_content }
|
67
|
-
else
|
68
|
-
format.html { render action: "edit" }
|
69
|
-
format.json { render json: @image.errors, status: :unprocessable_entity }
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# DELETE /images/1
|
75
|
-
# DELETE /images/1.json
|
76
|
-
def destroy
|
77
|
-
@image = Image.find(params[:id])
|
78
|
-
@image.destroy
|
79
|
-
|
80
|
-
respond_to do |format|
|
81
|
-
format.html { redirect_to images_url }
|
82
|
-
format.json { head :no_content }
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|