diff options
| author | Xinhui | 2017-11-23 14:14:04 +0100 |
|---|---|---|
| committer | Xinhui | 2017-11-28 12:21:33 +0100 |
| commit | 6820faf7849ff704c55cde29c8b2efc320ff63d7 (patch) | |
| tree | fca06b0663ff2150349cafe6fd5839d3ea7115af /app/models | |
| parent | 1e61b1792c4c0be9e55b6469610fca982d8a9e54 (diff) | |
| download | chouette-core-6820faf7849ff704c55cde29c8b2efc320ff63d7.tar.bz2 | |
Replace pageheader by render partial
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/dashboard.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/dashboard.rb b/app/models/dashboard.rb index a53267db5..46c621266 100644 --- a/app/models/dashboard.rb +++ b/app/models/dashboard.rb @@ -11,8 +11,11 @@ class Dashboard @@default_class = self mattr_accessor :default_class - attr_reader :context + def self.model_name + ActiveModel::Name.new Dashboard, Dashboard, "Dashboard" + end + attr_reader :context def initialize(context) @context = context end |
