Created
November 21, 2011 16:19
-
-
Save kennyj/1383112 to your computer and use it in GitHub Desktop.
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
find . -name "*.rb" -print | xargs grep " and " | grep -v "# " | grep -v "_test.rb:" | |
./actionpack/lib/action_view/helpers/form_helper.rb: if object ||= @template.instance_variable_get("@#{Regexp.last_match.pre_match}") and object.respond_to?(:to_param) | |
./actionpack/lib/action_view/helpers/number_helper.rb: if significant and precision > 0 | |
./actionpack/lib/action_view/helpers/capture_helper.rb: if string = buffer.presence || value and string.is_a?(String) | |
./actionpack/lib/action_controller/caching/sweeping.rb: ActiveRecord::Base.observers << sweeper if defined?(ActiveRecord) and defined?(ActiveRecord::Base) | |
./actionpack/lib/action_controller/caching/sweeping.rb: if defined?(ActiveRecord) and defined?(ActiveRecord::Observer) | |
./actionpack/lib/action_controller/caching/actions.rb: path << ".#{extension}" if extension and !path.split('?').first.ends_with?(".#{extension}") | |
./actionpack/lib/action_controller/vendor/html-scanner/html/node.rb: (c.kind_of?(HTML::Tag) and (c.closing == :self or ! c.childless?)) | |
./actionpack/lib/action_controller/metal/data_streaming.rb: raise MissingFile, "Cannot read file #{path}" unless File.file?(path) and File.readable?(path) | |
./actionpack/lib/action_dispatch/routing/route_set.rb: use_recall_for(:controller) or return | |
./actionpack/lib/action_dispatch/routing/route_set.rb: use_recall_for(:action) or return | |
./actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb: match = @scanner.scan_until(/['"<>]/) or break | |
./actionpack/lib/action_controller/vendor/html-scanner/html/node.rb: scanner.skip_until(/>/) or scanner.terminate | |
./actionpack/lib/action_controller/vendor/html-scanner/html/node.rb: (c.kind_of?(HTML::Tag) and (c.closing == :self or ! c.childless?)) | |
./activesupport/test/multibyte_conformance.rb: until f.eof? || (max_test_lines > 38 and lines > max_test_lines) | |
./activesupport/lib/active_support/multibyte/unicode.rb: ( previous == database.boundary[:cr] and current == database.boundary[:lf] ) or | |
./activesupport/lib/active_support/multibyte/unicode.rb: ( database.boundary[:l] === previous and in_char_class?(current, [:l,:v,:lv,:lvt]) ) or | |
./activesupport/lib/active_support/multibyte/unicode.rb: ( in_char_class?(previous, [:lv,:v]) and in_char_class?(current, [:v,:t]) ) or | |
./activesupport/lib/active_support/multibyte/unicode.rb: ( in_char_class?(previous, [:lvt,:t]) and database.boundary[:t] === current ) or | |
./activesupport/lib/active_support/multibyte/unicode.rb: if HANGUL_SBASE <= cp and cp < HANGUL_SLAST | |
./activesupport/lib/active_support/multibyte/unicode.rb: elsif (ncp = database.codepoints[cp].decomp_mapping) and (!database.codepoints[cp].decomp_type || type == :compatability) | |
./activesupport/lib/active_support/multibyte/unicode.rb: if 0 <= lindex and lindex < HANGUL_LCOUNT | |
./activesupport/lib/active_support/multibyte/unicode.rb: if 0 <= vindex and vindex < HANGUL_VCOUNT | |
./activesupport/lib/active_support/multibyte/unicode.rb: if 0 <= tindex and tindex < HANGUL_TCOUNT | |
./activesupport/lib/active_support/multibyte/unicode.rb: if cp and (ncp = cp.send(mapping)) and ncp > 0 | |
./activesupport/lib/active_support/cache.rb: if race_ttl and Time.now.to_f - entry.expires_at <= race_ttl | |
./activesupport/lib/active_support/dependencies.rb: if !warnings_on_first_load or history.include?(expanded) | |
./railties/lib/rails/commands/plugin.rb: uninstall if installed? and options[:force] | |
./railties/lib/rails/commands/plugin.rb: init_cmd += " -q" if options[:quiet] and not $verbose | |
./railties/lib/rails/commands/plugin.rb: base_cmd += " -q" if options[:quiet] and not $verbose | |
./railties/lib/rails/commands/plugin.rb: base_cmd += ' -q' if options[:quiet] and not $verbose | |
./railties/lib/rails/commands/plugin.rb: left << args.shift while args[0] and args[0] =~ /^-/ | |
./railties/lib/rails/commands/plugin.rb: @method = :http if best == :http and @method == :export | |
./railties/lib/rails/commands/plugin.rb: when (best == :http and @method != :http) | |
./railties/lib/rails/commands/plugin.rb: when (best == :export and (@method != :export and @method != :http)) | |
./railties/lib/rails/commands/plugin.rb: when (best != :externals and @method == :externals) | |
./railties/lib/rails/ruby_version_check.rb:elsif RUBY_VERSION > '1.9' and RUBY_VERSION < '1.9.2' | |
./railties/lib/rails/generators/base.rb: if generator_name and c = config[generator_name.to_sym] and c.key?(name) | |
./railties/lib/rails/generators/base.rb: elsif base_name and c = config[base_name.to_sym] and c.key?(name) | |
./railties/lib/rails/code_statistics.rb: if File.directory?(directory + "/" + file_name) and (/^\./ !~ file_name) | |
./railties/lib/rails/commands/plugin.rb: or rails_env.externals.detect{ |name, repo| self.uri == repo } | |
./railties/lib/rails/commands/plugin.rb: externals.reject!{|n, u| name == n or name == u} | |
./activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: unless pk and sequence | |
./activerecord/lib/active_record/session_store.rb: if limit and read_attribute(@@data_column_name).size > limit | |
./activerecord/lib/active_record/session_store.rb: unless sid and session = @@session_class.find_by_session_id(sid) | |
./activerecord/lib/active_record/associations/has_many_association.rb: @target ||= [] and loaded! if count == 0 | |
./activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb: (pool && pool.connection) or raise ConnectionNotEstablished | |
./activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb: connection_handler.retrieve_connection_pool(self) or raise ConnectionNotEstablished | |
./activerecord/lib/active_record/relation/finder_methods.rb: first or raise RecordNotFound | |
./activerecord/lib/active_record/relation/finder_methods.rb: last or raise RecordNotFound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment