mdd 1.0 → 1.0.1

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.
@@ -27,6 +27,11 @@ module Mdd
27
27
  gem 'cancan'
28
28
  gem 'will_paginate'
29
29
  gem 'nested_form'
30
+
31
+ inside Rails.root do
32
+ run "bundle install"
33
+ remove_file 'public/index.html'
34
+ end
30
35
  end
31
36
 
32
37
  def images
@@ -4,5 +4,6 @@ class Permission < ActiveRecord::Base
4
4
  has_and_belongs_to_many :user
5
5
 
6
6
  validates :name, :uniqueness => true
7
+ attr_accessible :name
7
8
 
8
9
  end
@@ -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'), 'a/users/sign_out', :method => :delete %>
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
- Permission.create( :name => "SuperAdmin" ) if Permission.find_by_name("SuperAdmin").nil?
3
- Administrator.create :name => "Administrator", :email => 'admin@admin.com', :password => 'admin123', :password_confirmation => 'admin123'
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
@@ -1,3 +1,3 @@
1
1
  module Mdd
2
- VERSION = "1.0"
2
+ VERSION = "1.0.1"
3
3
  end
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: '1.0'
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-13 00:00:00.000000000 Z
12
+ date: 2012-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails