⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
MyCyma
All Projects
MyCyma
Overview
Activity
Issues
Repository
Download (483 Bytes)
Statistics
| Branch:
master
| Tag:
0.2.0
| Revision:
root
/
lib
/
mycyma.rb
@ fdc29eca
View
History
Annotate
require
'mycyma/info'
require
'ostruct'
require
'singleton'
module
MyCyma
class
Config
<
OpenStruct
include
Singleton
def
initialize
str
=
File
.
read
(
File
.
join
(
RAILS_ROOT
,
"config"
,
"settings.yml"
))
conf_doc
=
YAML
.
load
(
str
)
super
(
conf_doc
)
end
def
thumbnail_param_list
list
=
{}
self
.
thumbnail_sizes
.
each_pair
do
|
name
,
params
|
key
=
(
"thumb_"
+
name
).
to_sym
list
[
key
]
=
params
end
list
end
end
end
« Previous
1
2
3
4
5
Next »
(2-2/5)
Loading...