Skip to content

Commit

Permalink
Move dummy app to higer level
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord committed Sep 10, 2016
1 parent a796d6a commit 2154574
Show file tree
Hide file tree
Showing 70 changed files with 193,742 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.bundle/
log/*.log
pkg/
spec/dummy/log/*.log
spec/dummy/db/*.sqlite3
spec/dummy/db/*.sqlite3-journal
spec/dummy/log/*.log
spec/dummy/tmp/
spec/dummy/.sass-cache
dummy/log/*.log
dummy/db/*.sqlite3
dummy/db/*.sqlite3-journal
dummy/log/*.log
dummy/tmp/
dummy/.sass-cache
.DS_Store
coverage/
.lock-*
Expand Down
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'spec/dummy/db/seeds.rb'
- 'spec/dummy/db/migrate/**'
- 'spec/dummy/db/schema.rb'
- 'dummy/db/seeds.rb'
- 'dummy/db/migrate/**'
- 'dummy/db/schema.rb'
- 'lib/generators/templates/**/*'
Documentation:
Enabled: false
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
193,729 changes: 193,729 additions & 0 deletions dummy/log/test.log

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions dummy/spec
2 changes: 1 addition & 1 deletion lib/monarchy/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def message

class ResourceNotPersist < Error
def message
"Resource has to persisted!"
'Resource has to persisted!'
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/monarchy/validators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def resource(resource, allow_nil = false, persistance = true)
resource.class.try(:acting_as_resource)
end

(persistance && resource && !resource.persisted?) ? raise(Monarchy::Exceptions::ResourceNotPersist) : model
persistance && resource && !resource.persisted? ? raise(Monarchy::Exceptions::ResourceNotPersist) : model
end

def user(user, allow_nil = false)
Expand Down
1 change: 0 additions & 1 deletion spec/dummy/spec

This file was deleted.

2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../dummy/config/environment', __FILE__)
require File.expand_path('../../dummy/config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort('The Rails environment is running in production mode!') if Rails.env.production?
require 'monarchy'
Expand Down

0 comments on commit 2154574

Please sign in to comment.