mdd 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/mdd/sandbox/sandbox_generator.rb +5 -0
- data/lib/generators/mdd/sandbox/templates/app/models/permission.rb +1 -0
- data/lib/generators/mdd/sandbox/templates/app/views/a/users/_welcome.html.erb +1 -1
- data/lib/generators/mdd/sandbox/templates/db/seeds/site.rb +4 -2
- data/lib/mdd/version.rb +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= raw t('system.logged_info_user', :user => current_user.name) %>
|
3
3
|
</div>
|
4
4
|
<div class="logout">
|
5
|
-
<%= link_to t('system.logged_info_logout'),
|
5
|
+
<%= link_to t('system.logged_info_logout'), destroy_a_user_session_path, :method => :delete %>
|
6
6
|
</div>
|
7
7
|
<div class="change_password">
|
8
8
|
<%= link_to t('system.logged_info_edit_account'), a_edit_account_path %>
|
@@ -1,3 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
|
2
|
+
if Administrator.count == 0
|
3
|
+
Permission.create( :name => "SuperAdmin" ) if Permission.find_by_name("SuperAdmin").nil?
|
4
|
+
Administrator.create :name => "Administrator", :email => 'admin@admin.com', :password => 'admin123', :password_confirmation => 'admin123'
|
5
|
+
end
|
data/lib/mdd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|