No commit activity in last 3 years
No release in over 3 years
DRYing Our Cities projects by wrapping common behaviours
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.7.1, ~> 0.7
>= 3.1.0, ~> 3.1
>= 1.3.9, ~> 1.3

Runtime

>= 4.0.0, ~> 4.0
>= 4.1.5, ~> 4.1
 Project Readme

Build Status Coverage Status Code Climate

Install

gem 'acts_as_our_cities'

Using

Configuration

# config/initializers/acts_as_our_cities.rb
ActsAsOurCities.config do |config|
  config.default_avatar_url = "http://i.imgur.com/Yg5ngED.jpg"
  config.api_mode = true
  config.api_site = "http://myaccounts.herokuapp.com/api/v1"
  config.api_token = "my-accounts-secret-token"
end

ActsAsOurCitiesUser

# app/model/user.rb
class User < ActiveRecord::Base
  acts_as_our_cities_user
end

# Now you can use the 'name' method
user = User.new first_name: "Lionel", last_name: "Messi"
user.name # "Lionel Messi"

# And the 'avatar_url' as well
user.avatar_url

License

This project rocks and uses MIT-LICENSE.