RubyGems
npm
Organizations
Log in
Sign up
RubyGems
cowtech-rails
Versions diffs
1.2.0.0 → 1.3.0.0
cowtech-rails 1.2.0.0 → 1.3.0.0
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/app/models/cowtech/ruby_on_rails/models/model_base.rb
+4
-0
data/lib/cowtech/version.rb
+1
-1
metadata
+2
-2
data/app/models/cowtech/ruby_on_rails/models/model_base.rb
CHANGED
Viewed
@@ -8,6 +8,10 @@ module Cowtech
8
8
module RubyOnRails
9
9
module Models
10
10
class ModelBase < ::ActiveRecord::Base
11
+
def safe_id
12
+
if self.id then self.id else 0 end
13
+
end
14
+
11
15
def editable?(user = nil)
12
16
true
13
17
end
data/lib/cowtech/version.rb
CHANGED
Viewed
@@ -8,7 +8,7 @@ module Cowtech
8
8
module Rails
9
9
module Version
10
10
MAJOR = 1
11
-
MINOR =
2
11
+
MINOR =
3
12
12
PATCH = 0
13
13
BUILD = 0
14
14
metadata
CHANGED
Viewed
@@ -4,10 +4,10 @@ version: !ruby/object:Gem::Version
4
4
prerelease: false
5
5
segments:
6
6
- 1
7
-
-
2
7
+
-
3
8
8
- 0
9
9
- 0
10
-
version: 1.
2
.0.0
10
+
version: 1.
3
.0.0
11
11
platform: ruby
12
12
authors:
13
13
- Shogun