hiroeorz-custom-active-record 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{custom-active-record}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["hiroeorz"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-08}
|
10
10
|
s.email = %q{hiroe.orz@gmail.com}
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"LICENSE",
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
"VERSION.yml",
|
22
22
|
"custom-active-record.gemspec",
|
23
23
|
"lib/custom_active_record.rb",
|
24
|
+
"lib/custom_active_record/flexible_name_base.rb",
|
24
25
|
"lib/custom_active_record/no_id_base.rb",
|
25
26
|
"lib/custom_active_record/plurals_pkeys_base.rb",
|
26
27
|
"lib/custom_active_record/plurals_pkeys_sjis_base.rb",
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class FlexibleNameBase < ActiveRecord::Base
|
4
|
+
|
5
|
+
def self.find(*args)
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
def create
|
10
|
+
raise "not supported update query"
|
11
|
+
end
|
12
|
+
|
13
|
+
def update
|
14
|
+
raise "not supported update query"
|
15
|
+
end
|
16
|
+
|
17
|
+
def save
|
18
|
+
raise "not supported update query"
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiroeorz-custom-active-record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hiroeorz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-08 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -31,6 +31,7 @@ files:
|
|
31
31
|
- VERSION.yml
|
32
32
|
- custom-active-record.gemspec
|
33
33
|
- lib/custom_active_record.rb
|
34
|
+
- lib/custom_active_record/flexible_name_base.rb
|
34
35
|
- lib/custom_active_record/no_id_base.rb
|
35
36
|
- lib/custom_active_record/plurals_pkeys_base.rb
|
36
37
|
- lib/custom_active_record/plurals_pkeys_sjis_base.rb
|