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 c | |
/Users/mattvanhorn/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE | |
/Users/mattvanhorn/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC | |
/Users/mattvanhorn/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS | |
/Users/mattvanhorn/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8 | |
:public is no longer used to avoid overloading Module#public, use :public_folder instead | |
from /Users/mattvanhorn/.rvm/gems/ruby-1.9.3-p194/gems/rollout_ui-0.2.1/lib/rollout_ui/server.rb:16:in `<class:Server>' | |
Loading development environment (Rails 3.2.6) | |
cannot load such file -- wirble | |
1.9.3p194 :001 > reload! |
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
# app/models/post.rb | |
class Post < ActiveRecord::Base | |
has_many :comments | |
end | |
# app/exhibits/post_exhibit.rb | |
class PostExhibit< DisplayCase::Exhibit | |
def self.applicable_to?(object) | |
object_is_any_of?(object, Post) |
NewerOlder