Commit ed7b39f6dfcbb9f0ab27c4b7336f2870c2f6c3da
1 parent
38d3cffe
Exists in
master
Adapt entities extension to the new api path
Showing
1 changed file
with
8 additions
and
9 deletions
Show diff stats
lib/ext/entities.rb
| 1 | -module Noosfero | |
| 2 | - module API | |
| 3 | - module Entities | |
| 1 | +require_dependency 'api/entities' | |
| 2 | + | |
| 3 | +module Api | |
| 4 | + module Entities | |
| 4 | 5 | #FIXME See the correct way to include timestamp |
| 5 | 6 | # def self.included(base) |
| 6 | 7 | # base.extend(ClassMethods) |
| ... | ... | @@ -8,15 +9,13 @@ module Noosfero |
| 8 | 9 | # |
| 9 | 10 | # module ClassMethods |
| 10 | 11 | |
| 11 | - class Badge < Entity | |
| 12 | - root 'badges', 'badge' | |
| 13 | - expose :name, :description, :title, :description, :level | |
| 12 | + class Badge < Entity | |
| 13 | + root 'badges', 'badge' | |
| 14 | + expose :name, :description, :title, :description, :level | |
| 14 | 15 | # expose :created_at, :format_with => :timestamp |
| 15 | - end | |
| 16 | + end | |
| 16 | 17 | |
| 17 | 18 | # end |
| 18 | 19 | # |
| 19 | - end | |
| 20 | 20 | end |
| 21 | - | |
| 22 | 21 | end | ... | ... |