OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manifest view profiler
[pettanr/pettanr.git]
/
lib
/
manifest
/
profiler.rb
diff --git
a/lib/manifest/profiler.rb
b/lib/manifest/profiler.rb
index
1eb54ff
..
e5555cb
100644
(file)
--- a/
lib/manifest/profiler.rb
+++ b/
lib/manifest/profiler.rb
@@
-13,7
+13,7
@@
module Manifest
end
attr :profiler_manifest, :item_name, :manifest,
end
attr :profiler_manifest, :item_name, :manifest,
- :columns, :lists, :associations
+ :column
_name
s, :lists, :associations
def initialize manifest, item_name, profiler_manifest
@manifest = manifest
@item_name = item_name
def initialize manifest, item_name, profiler_manifest
@manifest = manifest
@item_name = item_name
@@
-23,13
+23,13
@@
module Manifest
end
def set_default
end
def set_default
- @profiler_manifest['columns'] ||= []
+ @profiler_manifest['column
_name
s'] ||= []
@profiler_manifest['lists'] ||= {}
@profiler_manifest['associations'] ||= {}
end
def init
@profiler_manifest['lists'] ||= {}
@profiler_manifest['associations'] ||= {}
end
def init
- @column
s = @profiler_manifest['column
s']
+ @column
_names = @profiler_manifest['column_name
s']
@lists = {}
@profiler_manifest['lists'].each {|list_name, list_manifest|
@lists[list_name] = ProfilerModule::List.new(self, list_name, list_manifest)
@lists = {}
@profiler_manifest['lists'].each {|list_name, list_manifest|
@lists[list_name] = ProfilerModule::List.new(self, list_name, list_manifest)
@@
-37,8
+37,8
@@
module Manifest
@associations = ProfilerModule::Association.new(self, @profiler_manifest['associations'])
end
@associations = ProfilerModule::Association.new(self, @profiler_manifest['associations'])
end
- def
open item, operators
- ProfilerView.new @item_name, item, operators, @profiler_conf, @manifest
+ def
each_column
+ @column_names
end
end
end
end