Sha256: 0228fe6c56c6b1e05091edd7ad3a2c6ea270132b228e2d96d32880169ec6baf5

Contents?: true

Size: 823 Bytes

Versions: 19

Compression:

Stored size: 823 Bytes

Contents

attribute_imethods = %w{attribute_for_inspect column_for_attribute decrement} +
  %w{increment update_attribute toggle update_attributes []}
complete(:methods=>attribute_imethods, :class=>"ActiveRecord::Base#") {|e| e.object.attribute_names }

attribute_cmethods = %w{attr_accessible attr_protected attr_readonly create create! decrement_counter} +
  %w{destroy_all exists? increment_counter new serialize update update_all update_counters where}
complete(:methods=>attribute_cmethods, :class=>'ActiveRecord::Base.') {|e| e.object.column_names }

complete(:method=>"ActiveRecord::Base.establish_connection") { %w{adapter host username password database} }
complete(:methods=>%w{find all first last}, :class=>'ActiveRecord::Base.') {
  %w{conditions order group having limit offset joins include select from readonly lock}
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bond-0.5.1 lib/bond/completions/activerecord.rb
bond-0.5.1-java lib/bond/completions/activerecord.rb
bond-0.5.0 lib/bond/completions/activerecord.rb
bond-0.5.0-java lib/bond/completions/activerecord.rb
bond-0.4.3 lib/bond/completions/activerecord.rb
bond-0.4.3-java lib/bond/completions/activerecord.rb
bond-0.4.2 lib/bond/completions/activerecord.rb
bond-0.4.2-java lib/bond/completions/activerecord.rb
bond-0.4.1 lib/bond/completions/activerecord.rb
bond-0.4.0 lib/bond/completions/activerecord.rb
bond-0.3.5 lib/bond/completions/activerecord.rb
bond-0.3.4 lib/bond/completions/activerecord.rb
bond-0.3.3 lib/bond/completions/activerecord.rb
bond-0.3.2 lib/bond/completions/activerecord.rb
bond-0.3.1 lib/bond/completions/activerecord.rb
bond-0.3.0 lib/bond/completions/activerecord.rb
bond-0.2.2 lib/bond/completions/activerecord.rb
bond-0.2.1 lib/bond/completions/activerecord.rb
bond-0.2.0 lib/bond/completions/activerecord.rb