Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weather-model
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
weather-model
Commits
90983ca7
Commit
90983ca7
authored
May 22, 2017
by
liyijie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Ohm wrong data attributes
parent
5ae6dd0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
storer.rb
lib/weather-model/storer.rb
+10
-1
No files found.
lib/weather-model/storer.rb
View file @
90983ca7
...
...
@@ -83,7 +83,16 @@ module WeatherModel
super
.
select
{
|
x
|
x
.
attributes
.
empty?
}.
map
(
&
:delete
)
super
end
# # Write the dictionary of key-value pairs to the model.
def
method_missing
(
method
,
*
args
)
if
method
.
to_s
.
end_with?
'='
self
.
class
.
attribute
method
.
to_s
.
delete
(
'='
)
else
super
end
end
def
self
.
type_proc
type
case
type
when
:integer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment