Commit 175e64b797bf62b6c5d3794919142c34794cbb36
1 parent
05c1bf2f
Exists in
master
adding gamification information
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
lib/ext/entities.rb
| ... | ... | @@ -5,7 +5,7 @@ module Noosfero |
| 5 | 5 | module Entities |
| 6 | 6 | |
| 7 | 7 | class Person < Profile |
| 8 | - expose :orientacao_sexual, :identidade_genero, :transgenero, :etnia | |
| 8 | + expose :orientacao_sexual, :identidade_genero, :transgenero, :etnia, :points, :level, :gamification_plugin_level_percent | |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | 11 | end | ... | ... |
script/populate_states_and_cities
| ... | ... | @@ -7,7 +7,7 @@ puts "Populating environment:" |
| 7 | 7 | environment = Environment.default |
| 8 | 8 | puts environment.name |
| 9 | 9 | |
| 10 | -File.open('state.csv').readlines.map do |line| | |
| 10 | +File.open(File.join(File.dirname(__FILE__),'state.csv')).readlines.map do |line| | |
| 11 | 11 | puts line |
| 12 | 12 | line = line.chomp |
| 13 | 13 | acronym, name = line.split(',') |
| ... | ... | @@ -17,7 +17,7 @@ File.open('state.csv').readlines.map do |line| |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | 19 | state = nil |
| 20 | -File.open('cities.csv').readlines.map do |line| | |
| 20 | +File.open(File.join(File.dirname(__FILE__),'cities.csv')).readlines.map do |line| | |
| 21 | 21 | line = line.chomp |
| 22 | 22 | puts line |
| 23 | 23 | acronym, code, name = line.split(',') | ... | ... |