Created
October 22, 2013 20:26
-
-
Save danielevans/7107532 to your computer and use it in GitHub Desktop.
Demonstration script for https://github.com/songkick/oauth2-provider/pull/62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `eval': `attr_accessible` is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add `protected_attributes` to your Gemfile to use old one. (RuntimeError) | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/authorization.rb:20:in `<class:Authorization>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/authorization.rb:5:in `<module:Model>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/authorization.rb:3:in `<module:OAuth2>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/authorization.rb:2:in `<module:Songkick>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/authorization.rb:1:in `<top (required)>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/songkick-oauth2-provider-0.10.2/lib/songkick/oauth2/model/resource_owner.rb:8:in `included' | |
from /Users/gate/personal/test_app/app/models/user.rb:1:in `include' | |
from /Users/gate/personal/test_app/app/models/user.rb:1:in `<class:User>' | |
from /Users/gate/personal/test_app/app/models/user.rb:1:in `<top (required)>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:423:in `load' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:423:in `block in load_file' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:422:in `load_file' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:323:in `require_or_load' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:462:in `load_missing_constant' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:183:in `const_missing' | |
from (eval):1:in `<top (required)>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `eval' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `<top (required)>' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:86:in `require' | |
from /Users/gate/personal/test_app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:86:in `<top (required)>' | |
from ./bin/rails:4:in `require' | |
from ./bin/rails:4:in `<main>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails -v #=> Rails 4.0.0 | |
rails new test_app --skip-bundle | |
echo "gem 'songkick-oauth2-provider'" >> test_app/Gemfile | |
cd test_app | |
bundle install --path vendor/bundle | |
./bin/rails g model user | |
echo "class User < ActiveRecord::Base; include Songkick::OAuth2::Model::ResourceOwner; end" > app/models/user.rb | |
./bin/rails runner "User.count" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment