This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
GUIライブラリ | |
ロード方法の例(このライブラリをユーザースクリプトフォルダに"_gui.scpt"で保存した場合) | |
property GUI : load script file ((path to scripts folder as text) & "_gui.scpt") | |
あるいは動的に... | |
set GUI to load script file ((path to scripts folder as text) & "_gui.scpt") | |
開発&テスト環境 | |
MacBook OSX 10.5.6 | |
AppleScript 2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Authorization | |
module AasmRoles | |
unless Object.constants.include? "STATEFUL_ROLES_CONSTANTS_DEFINED" | |
STATEFUL_ROLES_CONSTANTS_DEFINED = true # sorry for the C idiom | |
end | |
def self.included( recipient ) | |
recipient.extend( StatefulRolesClassMethods ) | |
recipient.class_eval do | |
before_save :do_before_save |
NewerOlder