Module: Copycat
- Defined in:
- lib/copycat.rb,
lib/copycat/engine.rb,
lib/copycat/routes.rb,
lib/copycat/version.rb,
lib/copycat/implementation.rb
Defined Under Namespace
Modules: Implementation
Classes: Engine
Constant Summary
collapse
- VERSION =
"0.2.6"
- @@route =
'copycat_translations'
Class Method Summary
collapse
Class Method Details
.routes(mapper) ⇒ Object
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/copycat/routes.rb', line 2
def self.routes(mapper)
mapper.instance_eval do
resources Copycat.route,
:as => 'copycat_translations',
:controller => 'copycat_translations',
:only => [:index, :edit, :update, :destroy] do
collection do
get 'help'
get 'import_export'
get 'download'
post 'upload'
end
end
end
end
|
.setup {|_self| ... } ⇒ Object
12
13
14
|
# File 'lib/copycat.rb', line 12
def self.setup
yield self
end
|