iugusdk 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/user.rb +9 -3
- data/config/locales/iugu.pt-BR.yml +2 -2
- data/lib/iugusdk/version.rb +1 -1
- metadata +4 -4
data/app/models/user.rb
CHANGED
@@ -20,9 +20,9 @@ class User < ActiveRecord::Base
|
|
20
20
|
:recoverable, :rememberable, :validatable, :omniauthable
|
21
21
|
|
22
22
|
# Setup accessible (or protected) attributes for your model
|
23
|
-
attr_accessible :email, :password, :password_confirmation, :remember_me, :locale, :name, :birthdate, :guest, :account_alias, :plan_identifier, :currency, :user_invitation
|
23
|
+
attr_accessible :email, :password, :password_confirmation, :remember_me, :locale, :name, :birthdate, :guest, :account_alias, :account_name, :plan_identifier, :currency, :user_invitation
|
24
24
|
|
25
|
-
attr_accessor :plan_identifier, :currency, :account_alias, :user_invitation
|
25
|
+
attr_accessor :plan_identifier, :currency, :account_alias, :account_name, :user_invitation
|
26
26
|
|
27
27
|
before_destroy :destroy_private_accounts
|
28
28
|
|
@@ -199,7 +199,13 @@ class User < ActiveRecord::Base
|
|
199
199
|
@reconfirmable = true
|
200
200
|
|
201
201
|
def create_account_for_user
|
202
|
-
new_account = Account.create(
|
202
|
+
new_account = Account.create(
|
203
|
+
subdomain: account_alias,
|
204
|
+
plan_identifier: plan_identifier,
|
205
|
+
currency: currency,
|
206
|
+
email: (email or nil),
|
207
|
+
name: (account_name or nil)
|
208
|
+
)
|
203
209
|
new_account.account_users.create( { :user => self } )
|
204
210
|
end
|
205
211
|
|
@@ -33,7 +33,7 @@ pt-BR:
|
|
33
33
|
already_have_account: "Já tem uma conta?"
|
34
34
|
already_have_account_action: "Entrar"
|
35
35
|
generate_new_token: "Gerar novo token"
|
36
|
-
create_account: "
|
36
|
+
create_account: "Abra uma Conta"
|
37
37
|
no_account: "Não possui conta?"
|
38
38
|
no_account_action: "Registre-se"
|
39
39
|
add: "Adicionar"
|
@@ -85,7 +85,7 @@ pt-BR:
|
|
85
85
|
sign_in_with: "Entrar com"
|
86
86
|
link_social: "Ativar"
|
87
87
|
unlink_social: "Desconectar"
|
88
|
-
sign_up: "
|
88
|
+
sign_up: "Abrir uma conta"
|
89
89
|
profile: "Perfil"
|
90
90
|
profile_settings: "Configurações de Perfil"
|
91
91
|
account_settings: "Configurações de conta"
|
data/lib/iugusdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iugusdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -941,7 +941,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
941
941
|
version: '0'
|
942
942
|
segments:
|
943
943
|
- 0
|
944
|
-
hash:
|
944
|
+
hash: -807371436801294693
|
945
945
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
946
946
|
none: false
|
947
947
|
requirements:
|
@@ -950,7 +950,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
950
950
|
version: '0'
|
951
951
|
segments:
|
952
952
|
- 0
|
953
|
-
hash:
|
953
|
+
hash: -807371436801294693
|
954
954
|
requirements: []
|
955
955
|
rubyforge_project:
|
956
956
|
rubygems_version: 1.8.24
|